|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.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 |
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 |
getAssertion()
|
java.lang.String |
getAssertionId()
A CallbackHandler can choose to just set the AuthorityBinding and the AssertionId, and not set the actual assertion |
java.lang.String |
getAssertionType()
|
org.w3c.dom.Element |
getAuthorityBinding()
|
java.lang.String |
getAuthorityIdentifier()
|
java.lang.String |
getKeyAlgorithm()
|
java.lang.String |
getKeyIdentifier()
|
java.lang.String |
getReferenceType()
|
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 |
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 |
setReferenceType(java.lang.String rtype)
set the ReferenceType to be used for references to the SAML Assertion |
void |
setSTRID(java.lang.String id)
|
java.lang.String |
toString()
|
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, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
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 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 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 boolean equals(WSSPolicy policy)
equals
in class WSSPolicy
policy
- the policy to be compared for equality
SignaturePolicy
,
EncryptionPolicy
,
AuthenticationTokenPolicy
,
PrivateKeyBinding
,
SymmetricKeyBinding
public boolean equalsIgnoreTargets(WSSPolicy binding)
equalsIgnoreTargets
in class WSSPolicy
public java.lang.Object clone()
WSSPolicy
clone
in class WSSPolicy
SignaturePolicy
,
EncryptionPolicy
,
AuthenticationTokenPolicy
public java.lang.String getType()
SecurityPolicy
Implementation Note: Useful to avoid instanceof checks and String.equals checks
public void setSTRID(java.lang.String id)
public java.lang.String getSTRID()
public 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.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |