Uses of Class
com.sun.identity.wss.security.SecurityException
-
Packages that use SecurityException Package Description com.sun.identity.wss.security Defines Web Services Security Token specification and Token interfaces with their respective implementation classes for different WS-* Security Tokens.com.sun.identity.wss.security.handler Defines classes to handle WS-Security requests. -
-
Uses of SecurityException in com.sun.identity.wss.security
Methods in com.sun.identity.wss.security that throw SecurityException Modifier and Type Method Description voidKeyIdentifier. addToParent(Element parent)Adds the key identifier to the parent element.voidReference. addToParent(Element parent)Adds the reference to parent element.voidSecurityTokenReference. addToParent(Element parent)Adds the securitytoken reference to the parent element.static X509CertificateSAML2TokenUtils. getCertificate(SecurityToken securityToken)Returns anX509Certificatefrom the security token if it is of type SAML2 token holder of key.static X509CertificateWSSUtils. getCertificate(SecurityToken securityToken)Returns the certificate present in the security token.static SecurityTokenFactorySecurityTokenFactory. getInstance(SSOToken credential)Returns the Security Token factory instance.static SecurityTokenFactorySecurityTokenFactory. getInstance(TokenProvider provider)Returns the Security Token factory instance.static StringUserNameToken. getPasswordDigest(String password, String nonce, String created)Returns the password digest for the given password using nonce and created timestamp.static KeySAML2TokenUtils. getSecretKey(SecurityToken securityToken, String certAlias)static KeyWSSUtils. getSecretKey(SecurityToken securityToken, String certAlias)Returns the secret key from the security token from SAML1 Assertion.SecurityTokenAMTokenProvider. getSecurityToken()Returns theSecurityTokenfor the WS-Security.SecurityTokenSecurityTokenFactory. getSecurityToken(SecurityTokenSpec tokenSpec)Returns / Creates a security token from the security token specificaion.SecurityTokenTokenProvider. getSecurityToken()Returns theSecurityTokenfor the WS-Security.ElementKeyIdentifier. getTokenElement(Document doc)Returns the security token that is referenced via the key identifier.ElementSecurityTokenReference. getTokenElement(Document doc)Returns the referenced security token via the Reference URI.X509CertificateAssertionToken. getX509Certificate()Returns X509 certificate of the authenticated subject.X509CertificateKeyIdentifier. getX509Certificate()Returns theX509Certficatefor the value set in the key identifier.X509CertificateSAML2Token. getX509Certificate()Returns X509 certificate of the authenticated subject.voidUserNameToken. setPassword(String passwd)Sets the password to the username token.voidAssertionToken. sign(String alias)Signs the Assertion Token.voidSAML2Token. sign(String alias)Signs the SAML2 Token.ElementAssertionToken. toDocumentElement()Convert the security token into DOM Object.ElementBinarySecurityToken. toDocumentElement()Returns theDOMElement of the binary security token.ElementFAMSecurityToken. toDocumentElement()Convert the security token into DOM Object.ElementSAML2Token. toDocumentElement()Returns DOM element for the SAML2 tokenElementSecurityToken. toDocumentElement()Converts the Security Token into DOM Object.ElementUserNameToken. toDocumentElement()Returns the XML document element for the username security token.static booleanSAML2TokenUtils. validateAssertion(Assertion assertion, Subject subject, Map secureAttrs)Validates Assertion and sets the principal into the container Subject.Constructors in com.sun.identity.wss.security that throw SecurityException Constructor Description AssertionToken(AssertionTokenSpec spec, SSOToken ssoToken)Constructor that initializes the AssertionToken.BinarySecurityToken(KerberosTokenSpec kbSpec)Constructor to create Kerberos TokenBinarySecurityToken(X509TokenSpec tokenSpec)ConstructorBinarySecurityToken(X509Certificate cert, String valueType, String encodingType)BinarySecurityToken(Element token)ConstructorFAMSecurityToken(SSOToken ssoToken)Constructor for FAMSecurityTokenFAMSecurityToken(Element element)Constructor that uses DOM ElementKeyIdentifier(Element element)ConstructorReference(Element element)ConstructorSAML11AssertionValidator(Element assertionE, FAMSTSConfiguration stsConfig)SAML2AssertionValidator(Element assertionE, FAMSTSConfiguration stsConfig)SAML2Token(SAML2TokenSpec spec, SSOToken ssoToken)Constructor that initializes the SAML2Token.SecurityTokenReference(Element element)ConstructorUserNameToken(UserNameTokenSpec tokenSpec)Constructs a user name token with the user name token specification.UserNameToken(Element element)Constructor to create a username token using username token xml element. -
Uses of SecurityException in com.sun.identity.wss.security.handler
Methods in com.sun.identity.wss.security.handler that throw SecurityException Modifier and Type Method Description ObjectDefaultAuthenticator. authenticate(Subject subject, SecurityMechanism securityMechanism, SecurityToken securityToken, ProviderConfig config, Object secureMessage, boolean isLiberty)Authenticates the web services client.ObjectMessageAuthenticator. authenticate(Subject subject, SecurityMechanism securityMechanism, SecurityToken securityToken, ProviderConfig config, Object secureMessage, boolean isLiberty)Authenticates the web services client.booleanDefaultAuthorizer. authorize(Subject subject, Object secureMessage, SecurityMechanism securityMechanism, SecurityToken securityToken, ProviderConfig config, boolean isLiberty)Authorizes the web services client.booleanMessageAuthorizer. authorize(Subject subject, Object secureMessage, SecurityMechanism securityMechanism, SecurityToken securityToken, ProviderConfig config, boolean isLiberty)Authorizes the web services client.voidSecureSOAPMessage. decrypt(String keyAlias, boolean decryptBody, boolean decryptHeader)Decrypts theSOAPMessagefor the given security profile.voidSecureSOAPMessage. encrypt(String certAlias, String encryptionAlgorithm, int encryptionKeyStrength, boolean encryptBody, boolean encryptHeader)Encrypts theSOAPMessagefor the given security profile.static MessageAuthenticatorSOAPRequestHandler. getAuthenticator()Returns the configured message authenticator.static MessageAuthorizerSOAPRequestHandler. getAuthorizer()Returns the configured message authenticator.voidSOAPRequestHandler. init(Map config)Initializes the handler with the given configuration.voidSOAPRequestHandlerInterface. init(Map config)Initializes the handler with the given configuration.voidSecureSOAPMessage. parseSecurityHeader(Node node)Parses for the security header.jakarta.xml.soap.SOAPMessageSOAPRequestHandler. secureRequest(jakarta.xml.soap.SOAPMessage soapMessage, Subject subject, Map sharedState)Secures theSOAPMessagerequest by adding necessary credential information.jakarta.xml.soap.SOAPMessageSOAPRequestHandlerInterface. secureRequest(jakarta.xml.soap.SOAPMessage soapMessage, Subject subject, Map sharedState)Secures theSOAPMessagerequest by adding necessary credential information.jakarta.xml.soap.SOAPMessageSOAPRequestHandler. secureResponse(jakarta.xml.soap.SOAPMessage soapMessage, Map sharedState)Secures the SOAP Message response to the client.jakarta.xml.soap.SOAPMessageSOAPRequestHandlerInterface. secureResponse(jakarta.xml.soap.SOAPMessage soapMessage, Map sharedState)Secures the SOAP Message response to the client.voidSecureSOAPMessage. setSecurityToken(SecurityToken token)Sets the security token for securing the soap message.voidSecureSOAPMessage. sign()Signs theSOAPMessagefor the given security profile.ObjectSOAPRequestHandler. validateRequest(jakarta.xml.soap.SOAPMessage soapRequest, Subject subject, Map sharedState, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)Authenticates theSOAPMessagefrom a remote client.ObjectSOAPRequestHandlerInterface. validateRequest(jakarta.xml.soap.SOAPMessage soapRequest, Subject subject, Map sharedState, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)Authenticates theSOAPMessagefrom a remote client.voidSOAPRequestHandler. validateResponse(jakarta.xml.soap.SOAPMessage soapMessage, Map sharedState)Validates the SOAP Response from the service provider.voidSOAPRequestHandlerInterface. validateResponse(jakarta.xml.soap.SOAPMessage soapMessage, Map sharedState)Validates the SOAP Response from the service provider.booleanSecureSOAPMessage. verifyKerberosTokenSignature(Key secretKey)Verifies the signature of the SOAP message that has kerberos key.booleanSecureSOAPMessage. verifySignature()Verifies the signature of the SOAP message.Constructors in com.sun.identity.wss.security.handler that throw SecurityException Constructor Description SecureSOAPMessage(jakarta.xml.soap.SOAPMessage soapMessage, boolean create)Constructor to create secure SOAP message.SecureSOAPMessage(jakarta.xml.soap.SOAPMessage soapMessage, boolean create, List signedElements)Constructor to create secure SOAP message.
-