Package com.sun.xml.wss.impl.keyinfo
Class DirectReferenceStrategy
- java.lang.Object
-
- com.sun.xml.wss.impl.keyinfo.KeyInfoStrategy
-
- com.sun.xml.wss.impl.keyinfo.DirectReferenceStrategy
-
public class DirectReferenceStrategy extends KeyInfoStrategy
-
-
Constructor Summary
Constructors Constructor Description DirectReferenceStrategy()DirectReferenceStrategy(String samlAssertionId)DirectReferenceStrategy(String alias, boolean forSigning)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAlias()voidinsertKey(KeyInfoHeaderBlock keyInfo, SecurableSoapMessage secureMsg, String x509TokenId)insert the Key Information into a ds:KeyInfo using the appropriate schemevoidinsertKey(KeyInfoHeaderBlock keyInfo, SecurableSoapMessage secureMsg, String x509TokenId, String valueType)voidinsertKey(SecurityTokenReference tokenRef, SecurableSoapMessage secureMsg)insert the Key Information into a SecurityTokenReference using the appropriate schemevoidsetCertificate(X509Certificate cert)Sets the certificate corresponding to the security operation-
Methods inherited from class com.sun.xml.wss.impl.keyinfo.KeyInfoStrategy
getInstance
-
-
-
-
Field Detail
-
log
protected static final Logger log
-
-
Method Detail
-
insertKey
public void insertKey(SecurityTokenReference tokenRef, SecurableSoapMessage secureMsg) throws com.sun.xml.wss.XWSSecurityException
Description copied from class:KeyInfoStrategyinsert the Key Information into a SecurityTokenReference using the appropriate scheme- Specified by:
insertKeyin classKeyInfoStrategy- Parameters:
tokenRef- the SecurityTokenReference into which the Key Information has to be inserted.secureMsg- the SecurableSoapMessage- Throws:
com.sun.xml.wss.XWSSecurityException- if there was a problem in inserting the key information
-
insertKey
public void insertKey(KeyInfoHeaderBlock keyInfo, SecurableSoapMessage secureMsg, String x509TokenId) throws com.sun.xml.wss.XWSSecurityException
Description copied from class:KeyInfoStrategyinsert the Key Information into a ds:KeyInfo using the appropriate scheme- Specified by:
insertKeyin classKeyInfoStrategy- Parameters:
keyInfo- the KeyInfo block into which the Key Information has to be inserted.secureMsg- the SecurableSoapMessagex509TokenId- value of the <xwss:X509Token>/@id in config file- Throws:
com.sun.xml.wss.XWSSecurityException- if there was a problem in inserting the key information
-
insertKey
public void insertKey(KeyInfoHeaderBlock keyInfo, SecurableSoapMessage secureMsg, String x509TokenId, String valueType) throws com.sun.xml.wss.XWSSecurityException
- Throws:
com.sun.xml.wss.XWSSecurityException
-
setCertificate
public void setCertificate(X509Certificate cert)
Description copied from class:KeyInfoStrategySets the certificate corresponding to the security operation- Specified by:
setCertificatein classKeyInfoStrategy
-
getAlias
public String getAlias()
- Specified by:
getAliasin classKeyInfoStrategy
-
-