Package org.apache.ws.security
Class WSConstants
- java.lang.Object
-
- org.apache.ws.security.WSConstants
-
public class WSConstants extends java.lang.ObjectConstants in WS-Security spec.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringAES_128Sets theencryptionmethod to use AES with 128 bit key as the symmetric algorithm to encrypt data.static java.lang.StringAES_192Sets theencryptionmethod to use AES with 192 bit key as the symmetric algorithm to encrypt data.static java.lang.StringAES_256Sets theencryptionmethod to use AES with 256 bit key as the symmetric algorithm to encrypt data.static java.lang.StringASSERTION_LNstatic java.lang.StringATTR_ACTORstatic java.lang.StringATTR_MUST_UNDERSTANDstatic java.lang.StringATTR_ROLEstatic java.lang.StringBINARY_TOKEN_LNstatic intBST_DIRECT_REFERENCESets thesigningmethod to send the signing certificate as aBinarySecurityToken.static java.lang.StringC14N_EXCL_OMIT_COMMENTSstatic java.lang.StringC14N_EXCL_WITH_COMMENTSstatic java.lang.StringC14N_OMIT_COMMENTSstatic java.lang.StringC14N_WITH_COMMENTSstatic java.lang.StringCREATED_LNstatic java.lang.StringDSASets thesignaturemethod to use DSA with SHA1 (DSS) to sign data.static java.lang.StringELEM_BODYstatic java.lang.StringELEM_ENVELOPEstatic java.lang.StringELEM_HEADERstatic intEMBED_SECURITY_TOKEN_REFEmbeds a keyinfo/wsse:SecurityTokenReference into EncryptedData element.static intEMBEDDED_KEYNAMEEmbeds a keyinfo/key name into the EncryptedData element.static java.lang.StringENC_KEY_LNstatic java.lang.StringENC_NSstatic java.lang.StringENC_PREFIXstatic intENCRstatic java.lang.StringEXPIRES_LNstatic intISSUER_SERIALSets thesigningor theencryptionmethod to send the issuer name and the serial number of a certificate to the receiver.static java.lang.StringITERATION_LNstatic java.lang.StringKEYTRANSPORT_RSA15Sets theencryptionmethod to encrypt the symmetric data encryption key with the RSA algoritm.static java.lang.StringKEYTRANSPORT_RSAOEPSets theencryptionmethod to encrypt the symmetric data encryption key with the RSA algoritm.static java.lang.StringLABEL_FOR_DERIVED_KEYstatic intNO_SECURITYstatic intNO_SERIALIZEstatic java.lang.StringNONCE_LNstatic java.lang.StringNULL_NSstatic java.lang.StringPASSWORD_DIGESTstatic java.lang.StringPASSWORD_LNstatic java.lang.StringPASSWORD_TEXTstatic java.lang.StringPASSWORD_TYPE_ATTRstatic java.lang.StringPW_DIGESTSets theUserNameTokenmethod to use a password digest to send the password informationstatic java.lang.StringPW_TEXTSets theUserNameTokenmethod to send the password in clearstatic java.lang.StringREF_LIST_LNstatic java.lang.StringRSASets thesignaturemethod to use RSA with SHA to sign data.static java.lang.StringSALT_LNstatic java.lang.StringSAML_ASSERTION_IDstatic java.lang.StringSAML_NSstatic java.lang.StringSAMLP_NSstatic java.lang.StringSAMLTOKEN_NSstatic intSCstatic intSCTstatic intSERIALIZEstatic java.lang.StringSIG_LNstatic java.lang.StringSIG_NSstatic java.lang.StringSIG_PREFIXstatic intSIGNstatic java.lang.StringSIGNATURE_CONFIRMATION_LNstatic intSKI_KEY_IDENTIFIERSets thesigningmethod to send aSubjectKeyIdentifierto identify the signing certificate.static java.lang.StringSOAPMESSAGE_NSstatic java.lang.StringSOAPMESSAGE_NS11static intST_SIGNEDstatic intST_UNSIGNEDstatic java.lang.StringTHUMBPRINTstatic intTHUMBPRINT_IDENTIFIERTHUMPRINT_IDENTIFIERis used to set the specific key identifier ThumbprintSHA1.static java.lang.StringTIMESTAMP_TOKEN_LNstatic java.lang.StringTRIPLE_DESSets theencryptionmethod to use triple DES as the symmetric algorithm to encrypt data.static intTSstatic java.lang.StringURI_SOAP11_ENVstatic java.lang.StringURI_SOAP11_NEXT_ACTORstatic java.lang.StringURI_SOAP12_ENVstatic java.lang.StringURI_SOAP12_NEXT_ROLEstatic java.lang.StringURI_SOAP12_NONE_ROLEstatic java.lang.StringURI_SOAP12_ULTIMATE_ROLEstatic java.lang.String[]URIS_SOAP_ENVstatic java.lang.StringUSERNAME_LNstatic java.lang.StringUSERNAME_TOKEN_LNstatic java.lang.StringUSERNAMETOKEN_NSstatic intUTstatic intUT_SIGNstatic intUT_SIGNINGUT_SIGNINGis used interally only to set a specific Signature behaviour.static intWSE_DERIVED_KEY_LENLength of UsernameToken derived key used by .NET WSE to sign a message.static java.lang.StringWSS_SAML_ASSERTIONstatic java.lang.StringWSS_SAML_NSstatic java.lang.StringWSSE_LNstatic java.lang.StringWSSE_NSstatic java.lang.StringWSSE_PREFIXstatic java.lang.StringWSSE11_NSstatic java.lang.StringWSSE11_PREFIXstatic java.lang.StringWSU_NSstatic java.lang.StringWSU_PREFIXstatic intX509_KEY_IDENTIFIERSets theencryptionmethod to send the certificate used to encrypt the symmetric key.static java.lang.StringX509TOKEN_NSstatic java.lang.StringXML_NSstatic java.lang.StringXMLNS_NS
-
Constructor Summary
Constructors Constructor Description WSConstants()
-
-
-
Field Detail
-
WSSE_NS
public static final java.lang.String WSSE_NS
- See Also:
- Constant Field Values
-
WSSE11_NS
public static final java.lang.String WSSE11_NS
- See Also:
- Constant Field Values
-
WSU_NS
public static final java.lang.String WSU_NS
- See Also:
- Constant Field Values
-
SOAPMESSAGE_NS
public static final java.lang.String SOAPMESSAGE_NS
- See Also:
- Constant Field Values
-
SOAPMESSAGE_NS11
public static final java.lang.String SOAPMESSAGE_NS11
- See Also:
- Constant Field Values
-
USERNAMETOKEN_NS
public static final java.lang.String USERNAMETOKEN_NS
- See Also:
- Constant Field Values
-
X509TOKEN_NS
public static final java.lang.String X509TOKEN_NS
- See Also:
- Constant Field Values
-
SAMLTOKEN_NS
public static final java.lang.String SAMLTOKEN_NS
- See Also:
- Constant Field Values
-
WSSE_LN
public static final java.lang.String WSSE_LN
- See Also:
- Constant Field Values
-
THUMBPRINT
public static final java.lang.String THUMBPRINT
- See Also:
- Constant Field Values
-
SAML_ASSERTION_ID
public static final java.lang.String SAML_ASSERTION_ID
- See Also:
- Constant Field Values
-
WSSE_PREFIX
public static final java.lang.String WSSE_PREFIX
- See Also:
- Constant Field Values
-
WSSE11_PREFIX
public static final java.lang.String WSSE11_PREFIX
- See Also:
- Constant Field Values
-
WSU_PREFIX
public static final java.lang.String WSU_PREFIX
- See Also:
- Constant Field Values
-
SIG_NS
public static final java.lang.String SIG_NS
- See Also:
- Constant Field Values
-
SIG_PREFIX
public static final java.lang.String SIG_PREFIX
- See Also:
- Constant Field Values
-
SIG_LN
public static final java.lang.String SIG_LN
- See Also:
- Constant Field Values
-
ENC_NS
public static final java.lang.String ENC_NS
- See Also:
- Constant Field Values
-
ENC_PREFIX
public static final java.lang.String ENC_PREFIX
- See Also:
- Constant Field Values
-
ENC_KEY_LN
public static final java.lang.String ENC_KEY_LN
- See Also:
- Constant Field Values
-
REF_LIST_LN
public static final java.lang.String REF_LIST_LN
- See Also:
- Constant Field Values
-
XMLNS_NS
public static final java.lang.String XMLNS_NS
- See Also:
- Constant Field Values
-
XML_NS
public static final java.lang.String XML_NS
- See Also:
- Constant Field Values
-
USERNAME_TOKEN_LN
public static final java.lang.String USERNAME_TOKEN_LN
- See Also:
- Constant Field Values
-
BINARY_TOKEN_LN
public static final java.lang.String BINARY_TOKEN_LN
- See Also:
- Constant Field Values
-
TIMESTAMP_TOKEN_LN
public static final java.lang.String TIMESTAMP_TOKEN_LN
- See Also:
- Constant Field Values
-
USERNAME_LN
public static final java.lang.String USERNAME_LN
- See Also:
- Constant Field Values
-
PASSWORD_LN
public static final java.lang.String PASSWORD_LN
- See Also:
- Constant Field Values
-
PASSWORD_TYPE_ATTR
public static final java.lang.String PASSWORD_TYPE_ATTR
- See Also:
- Constant Field Values
-
NONCE_LN
public static final java.lang.String NONCE_LN
- See Also:
- Constant Field Values
-
CREATED_LN
public static final java.lang.String CREATED_LN
- See Also:
- Constant Field Values
-
EXPIRES_LN
public static final java.lang.String EXPIRES_LN
- See Also:
- Constant Field Values
-
SIGNATURE_CONFIRMATION_LN
public static final java.lang.String SIGNATURE_CONFIRMATION_LN
- See Also:
- Constant Field Values
-
SALT_LN
public static final java.lang.String SALT_LN
- See Also:
- Constant Field Values
-
ITERATION_LN
public static final java.lang.String ITERATION_LN
- See Also:
- Constant Field Values
-
SAML_NS
public static final java.lang.String SAML_NS
- See Also:
- Constant Field Values
-
SAMLP_NS
public static final java.lang.String SAMLP_NS
- See Also:
- Constant Field Values
-
ASSERTION_LN
public static final java.lang.String ASSERTION_LN
- See Also:
- Constant Field Values
-
WSS_SAML_NS
public static final java.lang.String WSS_SAML_NS
- See Also:
- Constant Field Values
-
WSS_SAML_ASSERTION
public static final java.lang.String WSS_SAML_ASSERTION
- See Also:
- Constant Field Values
-
URI_SOAP11_ENV
public static final java.lang.String URI_SOAP11_ENV
- See Also:
- Constant Field Values
-
URI_SOAP12_ENV
public static final java.lang.String URI_SOAP12_ENV
- See Also:
- Constant Field Values
-
URIS_SOAP_ENV
public static final java.lang.String[] URIS_SOAP_ENV
-
URI_SOAP11_NEXT_ACTOR
public static final java.lang.String URI_SOAP11_NEXT_ACTOR
- See Also:
- Constant Field Values
-
URI_SOAP12_NEXT_ROLE
public static final java.lang.String URI_SOAP12_NEXT_ROLE
- See Also:
- Constant Field Values
-
URI_SOAP12_NONE_ROLE
public static final java.lang.String URI_SOAP12_NONE_ROLE
- See Also:
- Constant Field Values
-
URI_SOAP12_ULTIMATE_ROLE
public static final java.lang.String URI_SOAP12_ULTIMATE_ROLE
- See Also:
- Constant Field Values
-
ELEM_ENVELOPE
public static final java.lang.String ELEM_ENVELOPE
- See Also:
- Constant Field Values
-
ELEM_HEADER
public static final java.lang.String ELEM_HEADER
- See Also:
- Constant Field Values
-
ELEM_BODY
public static final java.lang.String ELEM_BODY
- See Also:
- Constant Field Values
-
ATTR_MUST_UNDERSTAND
public static final java.lang.String ATTR_MUST_UNDERSTAND
- See Also:
- Constant Field Values
-
ATTR_ACTOR
public static final java.lang.String ATTR_ACTOR
- See Also:
- Constant Field Values
-
ATTR_ROLE
public static final java.lang.String ATTR_ROLE
- See Also:
- Constant Field Values
-
NULL_NS
public static final java.lang.String NULL_NS
- See Also:
- Constant Field Values
-
PW_DIGEST
public static final java.lang.String PW_DIGEST
Sets theUserNameTokenmethod to use a password digest to send the password information This is a required method as defined by WS Specification, Username token profile.- See Also:
- Constant Field Values
-
PASSWORD_DIGEST
public static final java.lang.String PASSWORD_DIGEST
- See Also:
- Constant Field Values
-
PW_TEXT
public static final java.lang.String PW_TEXT
Sets theUserNameTokenmethod to send the password in clear This is a required method as defined by WS Specification, Username token profile.- See Also:
- Constant Field Values
-
PASSWORD_TEXT
public static final java.lang.String PASSWORD_TEXT
- See Also:
- Constant Field Values
-
KEYTRANSPORT_RSA15
public static final java.lang.String KEYTRANSPORT_RSA15
Sets theencryptionmethod to encrypt the symmetric data encryption key with the RSA algoritm. This is a required method as defined by XML encryption.- See Also:
- Constant Field Values
-
KEYTRANSPORT_RSAOEP
public static final java.lang.String KEYTRANSPORT_RSAOEP
Sets theencryptionmethod to encrypt the symmetric data encryption key with the RSA algoritm. This is a required method as defined by XML encryption. NOTE: This algorithm is not yet supported by WSS4J- See Also:
- Constant Field Values
-
TRIPLE_DES
public static final java.lang.String TRIPLE_DES
Sets theencryptionmethod to use triple DES as the symmetric algorithm to encrypt data. This is a required method as defined by XML encryption. The String to use in WSDD file (in accordance to w3c specifications:
http://www.w3.org/2001/04/xmlenc#tripledes-cbc- See Also:
- Constant Field Values
-
AES_128
public static final java.lang.String AES_128
Sets theencryptionmethod to use AES with 128 bit key as the symmetric algorithm to encrypt data. This is a required method as defined by XML encryption. The String to use in WSDD file (in accordance to w3c specifications:
http://www.w3.org/2001/04/xmlenc#aes128-cbc- See Also:
- Constant Field Values
-
AES_256
public static final java.lang.String AES_256
Sets theencryptionmethod to use AES with 256 bit key as the symmetric algorithm to encrypt data. This is a required method as defined by XML encryption. The String to use in WSDD file (in accordance to w3c specifications:
http://www.w3.org/2001/04/xmlenc#aes256-cbc- See Also:
- Constant Field Values
-
AES_192
public static final java.lang.String AES_192
Sets theencryptionmethod to use AES with 192 bit key as the symmetric algorithm to encrypt data. This is a optional method as defined by XML encryption. The String to use in WSDD file (in accordance to w3c specifications:
http://www.w3.org/2001/04/xmlenc#aes192-cbc- See Also:
- Constant Field Values
-
DSA
public static final java.lang.String DSA
Sets thesignaturemethod to use DSA with SHA1 (DSS) to sign data. This is a required method as defined by XML signature.- See Also:
- Constant Field Values
-
RSA
public static final java.lang.String RSA
Sets thesignaturemethod to use RSA with SHA to sign data. This is a recommended method as defined by XML signature.- See Also:
- Constant Field Values
-
C14N_OMIT_COMMENTS
public static final java.lang.String C14N_OMIT_COMMENTS
- See Also:
- Constant Field Values
-
C14N_WITH_COMMENTS
public static final java.lang.String C14N_WITH_COMMENTS
- See Also:
- Constant Field Values
-
C14N_EXCL_OMIT_COMMENTS
public static final java.lang.String C14N_EXCL_OMIT_COMMENTS
- See Also:
- Constant Field Values
-
C14N_EXCL_WITH_COMMENTS
public static final java.lang.String C14N_EXCL_WITH_COMMENTS
- See Also:
- Constant Field Values
-
BST_DIRECT_REFERENCE
public static final int BST_DIRECT_REFERENCE
Sets thesigningmethod to send the signing certificate as aBinarySecurityToken. The signing method takes the signing certificate, converts it to aBinarySecurityToken, puts it in the security header, and inserts aReferenceto the binary security token into thewsse:SecurityReferenceToken. Thus the whole signing certificate is transfered to the receiver. The X509 profile recommends to useISSUER_SERIALinstead of sending the whole certificate. Please refer to WS Security specification X509 profile, chapter 3.3.2 and to WS Security specification, chapter 7.2 Note: only local refernces to BinarySecurityToken are supported- See Also:
- Constant Field Values
-
ISSUER_SERIAL
public static final int ISSUER_SERIAL
Sets thesigningor theencryptionmethod to send the issuer name and the serial number of a certificate to the receiver. In contrast toBST_DIRECT_REFERENCEonly the issuer name and the serial number of the signiung certificate are sent to the receiver. This reduces the amount of data being sent. The ecnryption method uses the public key associated with this certificate to encrypt the symmetric key used to encrypt data. Please refer to WS Security specification X509 profile, chapter 3.3.3- See Also:
- Constant Field Values
-
X509_KEY_IDENTIFIER
public static final int X509_KEY_IDENTIFIER
Sets theencryptionmethod to send the certificate used to encrypt the symmetric key. The encryption method uses the public key associated with this certificate to encrypr the symmetric key used to encrypt data. The certificate is converted into aKeyIdentfiertoken and sent to the receiver. Thus the complete certificate data is transfered to receiver. The X509 profile recommends to useISSUER_SERIALinstead of sending the whole certificate. Please refer to WS Security specification X509 profile, chapter 7.3- See Also:
- Constant Field Values
-
SKI_KEY_IDENTIFIER
public static final int SKI_KEY_IDENTIFIER
Sets thesigningmethod to send aSubjectKeyIdentifierto identify the signing certificate. Refer to WS Security specification X509 profile, chapter 3.3.1 This identification token is not yet fully tested by WSS4J. The WsDoAllSender does not include the X.509 certificate asBinarySecurityTokenin the request message.- See Also:
- Constant Field Values
-
EMBEDDED_KEYNAME
public static final int EMBEDDED_KEYNAME
Embeds a keyinfo/key name into the EncryptedData element. Refer to WS Security specification X509 profile- See Also:
- Constant Field Values
-
EMBED_SECURITY_TOKEN_REF
public static final int EMBED_SECURITY_TOKEN_REF
Embeds a keyinfo/wsse:SecurityTokenReference into EncryptedData element.- See Also:
- Constant Field Values
-
UT_SIGNING
public static final int UT_SIGNING
UT_SIGNINGis used interally only to set a specific Signature behaviour. The signing token is constructed from values in the UsernameToken according to WS-Trust specification.- See Also:
- Constant Field Values
-
THUMBPRINT_IDENTIFIER
public static final int THUMBPRINT_IDENTIFIER
THUMPRINT_IDENTIFIERis used to set the specific key identifier ThumbprintSHA1. This identifier uses the SHA-1 digest of a security token to identify the security token. Please refer to chapter 7.2 of the OASIS WSS 1.1 specification.- See Also:
- Constant Field Values
-
NO_SECURITY
public static final int NO_SECURITY
- See Also:
- Constant Field Values
-
UT
public static final int UT
- See Also:
- Constant Field Values
-
SIGN
public static final int SIGN
- See Also:
- Constant Field Values
-
ENCR
public static final int ENCR
- See Also:
- Constant Field Values
-
ST_UNSIGNED
public static final int ST_UNSIGNED
- See Also:
- Constant Field Values
-
ST_SIGNED
public static final int ST_SIGNED
- See Also:
- Constant Field Values
-
TS
public static final int TS
- See Also:
- Constant Field Values
-
UT_SIGN
public static final int UT_SIGN
- See Also:
- Constant Field Values
-
SC
public static final int SC
- See Also:
- Constant Field Values
-
NO_SERIALIZE
public static final int NO_SERIALIZE
- See Also:
- Constant Field Values
-
SERIALIZE
public static final int SERIALIZE
- See Also:
- Constant Field Values
-
SCT
public static final int SCT
- See Also:
- Constant Field Values
-
WSE_DERIVED_KEY_LEN
public static final int WSE_DERIVED_KEY_LEN
Length of UsernameToken derived key used by .NET WSE to sign a message.- See Also:
- Constant Field Values
-
LABEL_FOR_DERIVED_KEY
public static final java.lang.String LABEL_FOR_DERIVED_KEY
- See Also:
- Constant Field Values
-
-