Package com.sun.xml.wss.impl.policy.mls
Class AuthenticationTokenPolicy.X509CertificateBinding
java.lang.Object
com.sun.xml.wss.impl.policy.MLSPolicy
com.sun.xml.wss.impl.policy.mls.WSSPolicy
com.sun.xml.wss.impl.policy.mls.KeyBindingBase
com.sun.xml.wss.impl.policy.mls.AuthenticationTokenPolicy.X509CertificateBinding
- All Implemented Interfaces:
SecurityPolicy,Cloneable
- Enclosing class:
- AuthenticationTokenPolicy
A policy representing a WSS X509Certificate. An instance of
this class can be used as concrete feature binding for an
AuthenticationTokenPolicy.
-
Field Summary
Fields inherited from class com.sun.xml.wss.impl.policy.mls.KeyBindingBase
claims, claimsDialect, INCLUDE_ALWAYS, INCLUDE_ALWAYS_TO_RECIPIENT, INCLUDE_ALWAYS_TO_RECIPIENT_VER2, INCLUDE_ALWAYS_VER2, INCLUDE_NEVER, INCLUDE_NEVER_VER2, INCLUDE_ONCE, INCLUDE_ONCE_VER2, includeToken, issuer, policyTokenFields inherited from class com.sun.xml.wss.impl.policy.mls.WSSPolicy
_featureBinding, _isOptional, _keyBinding, _policyIdentifier, bsp, UUID -
Constructor Summary
ConstructorsConstructorDescriptionDefault ConstructorX509CertificateBinding(String certificateIdentifier, String keyAlgorithm) -
Method Summary
Modifier and TypeMethodDescriptionclone()Clone operatorbooleanequals operatorbooleanequalsIgnoreTargets(WSSPolicy policy) getSTRID()getType()Get the type of the policy.Create and set the KeyBinding for this WSSPolicy to a PrivateKeyBindingvoidsetCertificateIdentifier(String certificateIdentifier) set the Certificate IdentifiervoidsetEncodingType(String encodingType) set the EncodingTypevoidsetKeyAlgorithm(String keyAlgorithm) voidsetReferenceType(String referenceType) set the ReferenceTypevoidvoidsetValueType(String valueType) set the ValueTypevoidsetX509Certificate(X509Certificate certificate) set the CertificatetoString()Methods inherited from class com.sun.xml.wss.impl.policy.mls.KeyBindingBase
getClaims, getIncludeToken, getIssuer, policyTokenWasSet, setClaims, setIncludeToken, setIssuer, setPolicyTokenFlagMethods inherited from class com.sun.xml.wss.impl.policy.mls.WSSPolicy
getFeatureBinding, getKeyBinding, getPolicyIdentifier, getUUID, isBSP, isBSP, isOptional, isOptional, setFeatureBinding, setKeyBinding, setPolicyIdentifier, setUUIDMethods inherited from class com.sun.xml.wss.impl.policy.MLSPolicy
isReadOnly, isReadOnly
-
Constructor Details
-
X509CertificateBinding
public X509CertificateBinding()Default Constructor -
X509CertificateBinding
- Parameters:
certificateIdentifier- X509Certificate identifiers like aliaskeyAlgorithm- Key algorithm to be used
-
-
Method Details
-
newPrivateKeyBinding
Create and set the KeyBinding for this WSSPolicy to a PrivateKeyBinding- Returns:
- a new PrivateKeyBinding as a KeyBinding for this WSSPolicy
-
setValueType
set the ValueType- Parameters:
valueType- Token type like X509v3, X509PKIPathv1, PKCS7
-
setEncodingType
set the EncodingType- Parameters:
encodingType- encoding type like base64
-
setReferenceType
set the ReferenceType- Parameters:
referenceType- KeyIdentifier, Direct etc.,.
-
setCertificateIdentifier
set the Certificate Identifier- Parameters:
certificateIdentifier- alias, key identifier etc.,.
-
setX509Certificate
set the Certificate- Parameters:
certificate- X509Certificate
-
getValueType
- Returns:
- valueType
-
getEncodingType
- Returns:
- encodingType
-
getReferenceType
- Returns:
- referenceType
-
getCertificateIdentifier
- Returns:
- certificateIdentifier
-
getX509Certificate
- Returns:
- X509Certificate
-
setKeyAlgorithm
- Parameters:
keyAlgorithm- the keyAlgorithm
-
getKeyAlgorithm
- Returns:
- the keyAlgorithm
-
setSTRID
-
getSTRID
-
equals
Description copied from class:WSSPolicyequals operator -
equalsIgnoreTargets
- Specified by:
equalsIgnoreTargetsin classWSSPolicy
-
clone
Clone operator -
getType
Description copied from interface:SecurityPolicyGet the type of the policy.Implementation Note: Useful to avoid instanceof checks and String.equals checks
- Returns:
- the type of the policy
-
toString
-