|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.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.SAMLAssertionBinding
public static class AuthenticationTokenPolicy.SAMLAssertionBinding
A policy representing a SAML Assertion. An instance of this class can be used as concrete feature binding for an AuthenticationTokenPolicy.
| Field Summary | |
|---|---|
static java.lang.String |
HOK_ASSERTION
Holder-Of-Key Subject ConfirmationMethod |
static java.lang.String |
SV_ASSERTION
Sender-Vouches Subject ConfirmationMethod |
static java.lang.String |
V10_ASSERTION
|
static java.lang.String |
V11_ASSERTION
|
static java.lang.String |
V20_ASSERTION
|
| 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, policyToken |
| Fields inherited from class com.sun.xml.wss.impl.policy.mls.WSSPolicy |
|---|
_featureBinding, _isOptional, _keyBinding, _policyIdentifier, bsp, UUID |
| Fields inherited from class com.sun.xml.wss.impl.policy.MLSPolicy |
|---|
readonly |
| Constructor Summary | |
|---|---|
AuthenticationTokenPolicy.SAMLAssertionBinding()
Default constructor |
|
AuthenticationTokenPolicy.SAMLAssertionBinding(java.lang.String type,
java.lang.String keyIdentifier,
java.lang.String authorityIdentifier,
java.lang.String referenceType)
Constructor |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
clone operatror |
boolean |
equals(WSSPolicy policy)
equals operator |
boolean |
equalsIgnoreTargets(WSSPolicy binding)
|
org.w3c.dom.Element |
get_assertion()
|
org.w3c.dom.Element |
getAssertion()
|
java.lang.String |
getAssertionId()
A CallbackHandler can choose to just set the AuthorityBinding and the AssertionId, and not set the actual assertion |
javax.xml.stream.XMLStreamReader |
getAssertionReader()
|
java.lang.String |
getAssertionType()
|
org.w3c.dom.Element |
getAuthorityBinding()
|
java.lang.String |
getAuthorityIdentifier()
|
java.lang.String |
getKeyAlgorithm()
|
java.lang.String |
getKeyIdentifier()
|
java.lang.String |
getRealId()
|
java.lang.String |
getReferenceType()
|
java.lang.String |
getSAMLVersion()
|
java.lang.String |
getSTRID()
|
java.lang.String |
getType()
Get the type of the policy. |
MLSPolicy |
newPrivateKeyBinding()
Create and set the KeyBinding for this WSSPolicy to a PrivateKeyBinding |
void |
setAssertion(org.w3c.dom.Element assertion)
set the SAML Assertion |
void |
setAssertion(javax.xml.stream.XMLStreamReader reader)
|
void |
setAssertionId(java.lang.String id)
set the AssertionId for the possibly remote assertion A CallbackHandler can choose to just set the AuthorityBinding and the AssertionId, and not set the actual assertion |
void |
setAssertionType(java.lang.String type)
set the SubjectConfirmation type of the SAML assertion |
void |
setAuthorityBinding(org.w3c.dom.Element authorityBinding)
set the SAML AuthorityBinding element, identifying a remote assertion |
void |
setAuthorityIdentifier(java.lang.String uri)
set the abstract identifier for the issuing authority |
void |
setKeyAlgorithm(java.lang.String algorithm)
set the keyAlgorithm to be used |
void |
setKeyIdentifier(java.lang.String ki)
set the abstract identifier for the Confirmation Key |
void |
setRealId(java.lang.String realId)
|
void |
setReferenceType(java.lang.String rtype)
set the ReferenceType to be used for references to the SAML Assertion |
void |
setSAMLVersion(java.lang.String ver)
|
void |
setSTRID(java.lang.String id)
|
java.lang.String |
toString()
|
| Methods inherited from class com.sun.xml.wss.impl.policy.mls.KeyBindingBase |
|---|
getClaims, getIncludeToken, getIssuer, policyTokenWasSet, setClaims, setIncludeToken, setIssuer, setPolicyTokenFlag |
| Methods inherited from class com.sun.xml.wss.impl.policy.mls.WSSPolicy |
|---|
getFeatureBinding, getKeyBinding, getPolicyIdentifier, getUUID, isBSP, isBSP, isOptional, isOptional, setFeatureBinding, setKeyBinding, setPolicyIdentifier, setUUID |
| Methods inherited from class com.sun.xml.wss.impl.policy.MLSPolicy |
|---|
isReadOnly, isReadOnly |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String V10_ASSERTION
public static final java.lang.String V11_ASSERTION
public static final java.lang.String V20_ASSERTION
public static final java.lang.String SV_ASSERTION
public static final java.lang.String HOK_ASSERTION
| Constructor Detail |
|---|
public AuthenticationTokenPolicy.SAMLAssertionBinding()
public AuthenticationTokenPolicy.SAMLAssertionBinding(java.lang.String type,
java.lang.String keyIdentifier,
java.lang.String authorityIdentifier,
java.lang.String referenceType)
type - the SubjectConfirmation type of the SAML assertion, one of SV, HOKkeyIdentifier - an abstract identifier for the Confirmation KeyauthorityIdentifier - an abstract identifier for the issuing authorityreferenceType - the reference type for references to the SAML Assertion,
should be one of KeyIdentifier, Embedded reference type as defined by
WSS SAML Token profile 1.0.| Method Detail |
|---|
public void setAssertionType(java.lang.String type)
type - the SubjectConfirmation type of the SAML assertion, one of SV, HOKpublic void setSAMLVersion(java.lang.String ver)
public java.lang.String getSAMLVersion()
public MLSPolicy newPrivateKeyBinding()
public void setKeyIdentifier(java.lang.String ki)
ki - the abstract identifier for the Confirmation Keypublic void setAuthorityIdentifier(java.lang.String uri)
uri - the URI of the Assertion Issuerpublic void setReferenceType(java.lang.String rtype)
rtype - reference type (one of KeyIdentifier, Embedded)public void setAuthorityBinding(org.w3c.dom.Element authorityBinding)
authorityBinding - public void setAssertion(org.w3c.dom.Element assertion)
assertion - the SAML Assertionpublic void setAssertion(javax.xml.stream.XMLStreamReader reader)
public void setKeyAlgorithm(java.lang.String algorithm)
algorithm - the keyAlgorithm to be usedpublic java.lang.String getKeyAlgorithm()
public java.lang.String getReferenceType()
public java.lang.String getAssertionType()
public java.lang.String getKeyIdentifier()
public java.lang.String getAuthorityIdentifier()
public org.w3c.dom.Element getAuthorityBinding()
public org.w3c.dom.Element getAssertion()
public javax.xml.stream.XMLStreamReader getAssertionReader()
public boolean equals(WSSPolicy policy)
equals in class WSSPolicypolicy - the policy to be compared for equality
SignaturePolicy,
EncryptionPolicy,
AuthenticationTokenPolicy,
PrivateKeyBinding,
SymmetricKeyBindingpublic boolean equalsIgnoreTargets(WSSPolicy binding)
equalsIgnoreTargets in class WSSPolicypublic java.lang.Object clone()
WSSPolicy
clone in class WSSPolicySignaturePolicy,
EncryptionPolicy,
AuthenticationTokenPolicypublic java.lang.String getType()
SecurityPolicyImplementation Note: Useful to avoid instanceof checks and String.equals checks
getType in interface SecurityPolicypublic void setSTRID(java.lang.String id)
public java.lang.String getSTRID()
getSTRID in interface LazyKeyBindingpublic void setAssertionId(java.lang.String id)
id - the Assertion Id of the possibly remote SAML Assertionpublic java.lang.String getAssertionId()
public java.lang.String toString()
toString in class java.lang.Objectpublic org.w3c.dom.Element get_assertion()
public java.lang.String getRealId()
getRealId in interface LazyKeyBindingpublic void setRealId(java.lang.String realId)
setRealId in interface LazyKeyBinding
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||