Class SamlProtocol

java.lang.Object
ddf.security.samlp.impl.SamlProtocol

public class SamlProtocol extends Object
  • Field Details

  • Method Details

    • createResponse

      public static org.opensaml.saml.saml2.core.Response createResponse(org.opensaml.saml.saml2.core.Issuer issuer, org.opensaml.saml.saml2.core.Status status, String requestId, Element samlAssertion) throws org.apache.wss4j.common.ext.WSSecurityException
      Throws:
      org.apache.wss4j.common.ext.WSSecurityException
    • createIssuer

      public static org.opensaml.saml.saml2.core.Issuer createIssuer(String issuerValue)
    • createNameID

      public static org.opensaml.saml.saml2.core.NameID createNameID(String nameIdValue)
    • createSubject

      public static org.opensaml.saml.saml2.core.Subject createSubject(org.opensaml.saml.saml2.core.NameID nameId)
    • createStatus

      public static org.opensaml.saml.saml2.core.Status createStatus(String statusValue)
    • createStatus

      public static org.opensaml.saml.saml2.core.Status createStatus(String statusValue, String message)
    • createStatusCode

      public static org.opensaml.saml.saml2.core.StatusCode createStatusCode(String statusValue)
    • createIdpMetadata

      public static org.opensaml.saml.saml2.metadata.EntityDescriptor createIdpMetadata(String entityId, String signingCert, String encryptionCert, List<String> nameIds, String singleSignOnLocationRedirect, String singleSignOnLocationPost, String singleSignOnLocationSoap, String singleLogOutLocation)
    • createSpMetadata

      public static org.opensaml.saml.saml2.metadata.EntityDescriptor createSpMetadata(String entityId, String signingCert, String encryptionCert, List<String> nameIds, String singleLogOutLocation, String assertionConsumerServiceLocationRedirect, String assertionConsumerServiceLocationPost, String assertionConsumerServiceLocationPaos)
    • getCacheDuration

      public static Duration getCacheDuration()
    • createAttributeQuery

      public static org.opensaml.saml.saml2.core.AttributeQuery createAttributeQuery(org.opensaml.saml.saml2.core.Issuer issuer, org.opensaml.saml.saml2.core.Subject subject, String destination)
    • createAttributeQuery

      public static org.opensaml.saml.saml2.core.AttributeQuery createAttributeQuery(org.opensaml.saml.saml2.core.Issuer issuer, org.opensaml.saml.saml2.core.Subject subject)
    • createLogoutRequest

      public static ddf.security.samlp.LogoutWrapper<org.opensaml.saml.saml2.core.LogoutRequest> createLogoutRequest(org.opensaml.saml.saml2.core.Issuer issuer, org.opensaml.saml.saml2.core.NameID nameId, String id, List<String> sessionIndexes)
    • createLogoutResponse

      public static ddf.security.samlp.LogoutWrapper<org.opensaml.saml.saml2.core.LogoutResponse> createLogoutResponse(org.opensaml.saml.saml2.core.Issuer issuer, org.opensaml.saml.saml2.core.Status status, String inResponseTo, String id)
    • createLogoutResponse

      public static ddf.security.samlp.LogoutWrapper<org.opensaml.saml.saml2.core.LogoutResponse> createLogoutResponse(org.opensaml.saml.saml2.core.Issuer issuer, org.opensaml.saml.saml2.core.Status status, String id)
    • createSoapMessage

      public static org.opensaml.soap.soap11.Envelope createSoapMessage(org.opensaml.saml.common.SignableSAMLObject signableSAMLObject)
    • parseSoapMessage

      public static javax.xml.soap.SOAPPart parseSoapMessage(String samlRequest) throws XMLStreamException
      Throws:
      XMLStreamException
    • getXmlObjectFromNode

      public static org.opensaml.core.xml.XMLObject getXmlObjectFromNode(Node node) throws org.apache.wss4j.common.ext.WSSecurityException, XMLStreamException
      Throws:
      org.apache.wss4j.common.ext.WSSecurityException
      XMLStreamException
    • getDomElement

      public static Element getDomElement(Node node) throws org.apache.wss4j.common.ext.WSSecurityException, XMLStreamException
      Throws:
      org.apache.wss4j.common.ext.WSSecurityException
      XMLStreamException
    • convertDomImplementation

      public static Element convertDomImplementation(Element node) throws XMLStreamException
      Throws:
      XMLStreamException