org.apache.ws.security.saml
Class SAMLIssuerImpl

java.lang.Object
  extended by org.apache.ws.security.saml.SAMLIssuerImpl
All Implemented Interfaces:
SAMLIssuer

public class SAMLIssuerImpl
extends Object
implements SAMLIssuer

Builds a WS SAML Assertion and inserts it into the SOAP Envelope. Refer to the WS specification, SAML Token profile


Constructor Summary
SAMLIssuerImpl()
          Constructor.
SAMLIssuerImpl(Properties prop)
           
 
Method Summary
 CallbackHandler getCallbackHandler()
          Get the CallbackHandler in use
 Crypto getIssuerCrypto()
           
 String getIssuerKeyName()
           
 String getIssuerKeyPassword()
           
 String getIssuerName()
          Get the issuer name
 boolean isSendKeyValue()
          Get whether to send the key value or whether to include the entire cert.
 boolean isSignAssertion()
          Get whether to sign the assertion or not
 AssertionWrapper newAssertion()
          Creates a new AssertionWrapper.
 void setCallbackHandler(CallbackHandler callbackHandler)
          Set the CallbackHandler to use
 void setIssuerCrypto(Crypto issuerCrypto)
          Set the issuer crypto
 void setIssuerKeyName(String issuerKeyName)
          Set the issuer key name
 void setIssuerKeyPassword(String issuerKeyPassword)
          Set the issuer key password
 void setIssuerName(String issuer)
          Set the issuer name
 void setSendKeyValue(boolean sendKeyValue)
          Set whether to send the key value or whether to include the entire cert.
 void setSignAssertion(boolean signAssertion)
          Set whether to sign the assertion or not.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SAMLIssuerImpl

public SAMLIssuerImpl()
Constructor.


SAMLIssuerImpl

public SAMLIssuerImpl(Properties prop)
               throws WSSecurityException
Throws:
WSSecurityException
Method Detail

newAssertion

public AssertionWrapper newAssertion()
                              throws WSSecurityException
Creates a new AssertionWrapper.

Specified by:
newAssertion in interface SAMLIssuer
Returns:
a new AssertionWrapper.
Throws:
WSSecurityException

setSendKeyValue

public void setSendKeyValue(boolean sendKeyValue)
Set whether to send the key value or whether to include the entire cert.

Specified by:
setSendKeyValue in interface SAMLIssuer
Parameters:
sendKeyValue - whether to send the key value.

isSendKeyValue

public boolean isSendKeyValue()
Get whether to send the key value or whether to include the entire cert.

Specified by:
isSendKeyValue in interface SAMLIssuer
Returns:
whether to send the key value

setSignAssertion

public void setSignAssertion(boolean signAssertion)
Set whether to sign the assertion or not.

Specified by:
setSignAssertion in interface SAMLIssuer
Parameters:
signAssertion - whether to sign the assertion or not.

isSignAssertion

public boolean isSignAssertion()
Get whether to sign the assertion or not

Specified by:
isSignAssertion in interface SAMLIssuer
Returns:
whether to sign the assertion or not

setCallbackHandler

public void setCallbackHandler(CallbackHandler callbackHandler)
Set the CallbackHandler to use

Specified by:
setCallbackHandler in interface SAMLIssuer
Parameters:
callbackHandler - the CallbackHandler to use

getCallbackHandler

public CallbackHandler getCallbackHandler()
Get the CallbackHandler in use

Specified by:
getCallbackHandler in interface SAMLIssuer
Returns:
the CallbackHandler in use

setIssuerCrypto

public void setIssuerCrypto(Crypto issuerCrypto)
Set the issuer crypto

Specified by:
setIssuerCrypto in interface SAMLIssuer
Parameters:
issuerCrypto - the issuer crypto

getIssuerCrypto

public Crypto getIssuerCrypto()
Specified by:
getIssuerCrypto in interface SAMLIssuer
Returns:
Returns the issuerCrypto.

setIssuerName

public void setIssuerName(String issuer)
Set the issuer name

Specified by:
setIssuerName in interface SAMLIssuer
Parameters:
issuer - the issuer name

getIssuerName

public String getIssuerName()
Get the issuer name

Specified by:
getIssuerName in interface SAMLIssuer
Returns:
the issuer name

setIssuerKeyName

public void setIssuerKeyName(String issuerKeyName)
Set the issuer key name

Specified by:
setIssuerKeyName in interface SAMLIssuer
Parameters:
issuerKeyName - the issuer key name

getIssuerKeyName

public String getIssuerKeyName()
Specified by:
getIssuerKeyName in interface SAMLIssuer
Returns:
Returns the issuerKeyName.

setIssuerKeyPassword

public void setIssuerKeyPassword(String issuerKeyPassword)
Set the issuer key password

Specified by:
setIssuerKeyPassword in interface SAMLIssuer
Parameters:
issuerKeyPassword - the issuerKeyPassword.

getIssuerKeyPassword

public String getIssuerKeyPassword()
Specified by:
getIssuerKeyPassword in interface SAMLIssuer
Returns:
Returns the issuerKeyPassword.


Copyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.