com.ibm.websphere.wssecurity.callbackhandler
Class SCTGenerateCallback
- java.lang.Object
-
- com.ibm.websphere.wssecurity.callbackhandler.SCTGenerateCallback
-
- All Implemented Interfaces:
- javax.security.auth.callback.Callback
public class SCTGenerateCallback extends java.lang.Object implements javax.security.auth.callback.Callback
This is a callback class for the security context token in generator side.
-
-
Constructor Summary
Constructors Constructor and Description SCTGenerateCallback()
-
Method Summary
Methods Modifier and Type Method and Description javax.xml.ws.BindingProvider
getBindingProvider()
Returns the binding provider for axis2.java.lang.String
getClientLabel()
Returns the client label to generate the derived key token.java.lang.String
getEncyptionAlgorithm()
Returns the algorithm for the encryption.int
getEncyptionKeyBytesLength()
Returns the length of key for encryption.java.lang.String
getServiceEndpointAddress()
Returns the server endpoint address.java.lang.String
getServiceLabel()
Returns the service label to generate the derived key token.java.lang.String
getSignatureAlgorithm()
Returns the algorithm for signatureint
getSignatureKeyBytesLength()
Returns the length of key for signatureSecurityContextToken
getToken()
Returns the security context tokenWSSConsumingContext
getWSSConsumingContext()
Gets WSSConsumingContext object.WSSGenerationContext
getWSSGenerationContext()
Returns WSSGenerationContext object.boolean
isRequiredDKT()
Checks whether it requires the derived key token or notvoid
setBindingProvider(javax.xml.ws.BindingProvider bindingProvider)
Sets the binding provider for axis2.void
setClientLabel(java.lang.String clientLabel)
Sets the client label to generate the derived key token.void
setEncyptionAlgorithm(java.lang.String encyptionAlgorithm)
Sets the algorithm for encryption.void
setEncyptionKeyBytesLength(int encyptionKeyBytesLength)
Sets the length of key for encryptionvoid
setRequiredDKT(boolean requiredDKT)
Sets the required derived key token.void
setServiceEndpointAddress(java.lang.String serviceEndpointAddress)
Returns the server endpoint address.void
setServiceLabel(java.lang.String serviceLabel)
Sets the service label to generate the derived key token.void
setSignatureAlgorithm(java.lang.String signatureAlgorithm)
Sets the algorithm for signature.void
setSignatureKeyBytesLength(int signatureKeyBytesLength)
Sets the length of key for signaturevoid
setToken(SecurityContextToken token)
Sets the security context tokenvoid
setWSSConsumingContext(WSSConsumingContext concont)
Sets WSSConsumingContext object.void
setWSSGenerationContext(WSSGenerationContext gencont)
Sets WSSGenerationContext object.java.lang.String
toString()
Returns the string of this object's properties.
-
-
-
Method Detail
-
getWSSConsumingContext
public WSSConsumingContext getWSSConsumingContext()
Gets WSSConsumingContext object.- Returns:
- WSSConsumingContext object
-
setWSSConsumingContext
public void setWSSConsumingContext(WSSConsumingContext concont)
Sets WSSConsumingContext object.- Parameters:
concont
- WSSConsumingContext object
-
getWSSGenerationContext
public WSSGenerationContext getWSSGenerationContext()
Returns WSSGenerationContext object.- Returns:
- WSSGenerationContext object
-
setWSSGenerationContext
public void setWSSGenerationContext(WSSGenerationContext gencont)
Sets WSSGenerationContext object.- Parameters:
gencont
- WSSGenerationContext object
-
getServiceEndpointAddress
public java.lang.String getServiceEndpointAddress()
Returns the server endpoint address.- Returns:
- address of the service endpoint
-
setServiceEndpointAddress
public void setServiceEndpointAddress(java.lang.String serviceEndpointAddress)
Returns the server endpoint address.- Parameters:
serviceEndpointAddress
- address of the service endpoint
-
getToken
public SecurityContextToken getToken()
Returns the security context token- Returns:
- the security context token
-
setToken
public void setToken(SecurityContextToken token)
Sets the security context token- Parameters:
token
- security context token
-
isRequiredDKT
public boolean isRequiredDKT()
Checks whether it requires the derived key token or not- Returns:
- true if it is required. otherwise, it returns false.
-
setRequiredDKT
public void setRequiredDKT(boolean requiredDKT)
Sets the required derived key token.- Parameters:
requiredDKT
- true if the derived key token is required. false if it does not required.
-
getClientLabel
public java.lang.String getClientLabel()
Returns the client label to generate the derived key token.- Returns:
- client label
-
setClientLabel
public void setClientLabel(java.lang.String clientLabel)
Sets the client label to generate the derived key token.- Parameters:
clientLabel
- client label
-
getEncyptionAlgorithm
public java.lang.String getEncyptionAlgorithm()
Returns the algorithm for the encryption.- Returns:
- algorithm for the encryption
-
setEncyptionAlgorithm
public void setEncyptionAlgorithm(java.lang.String encyptionAlgorithm)
Sets the algorithm for encryption.- Parameters:
encyptionAlgorithm
- algorithm for the encryption
-
getEncyptionKeyBytesLength
public int getEncyptionKeyBytesLength()
Returns the length of key for encryption.- Returns:
- length of key for the encryption.
-
setEncyptionKeyBytesLength
public void setEncyptionKeyBytesLength(int encyptionKeyBytesLength)
Sets the length of key for encryption- Parameters:
encyptionKeyBytesLength
- length of the key for the encryption
-
getServiceLabel
public java.lang.String getServiceLabel()
Returns the service label to generate the derived key token.- Returns:
- service label
-
setServiceLabel
public void setServiceLabel(java.lang.String serviceLabel)
Sets the service label to generate the derived key token.- Parameters:
serviceLabel
- service label
-
getSignatureAlgorithm
public java.lang.String getSignatureAlgorithm()
Returns the algorithm for signature- Returns:
- algorithm for signature
-
setSignatureAlgorithm
public void setSignatureAlgorithm(java.lang.String signatureAlgorithm)
Sets the algorithm for signature.- Parameters:
signatureAlgorithm
- algorithm for signature
-
getSignatureKeyBytesLength
public int getSignatureKeyBytesLength()
Returns the length of key for signature- Returns:
- length of the key for the signature
-
setSignatureKeyBytesLength
public void setSignatureKeyBytesLength(int signatureKeyBytesLength)
Sets the length of key for signature- Parameters:
signatureKeyBytesLength
- length of the key for the signature
-
setBindingProvider
public void setBindingProvider(javax.xml.ws.BindingProvider bindingProvider)
Sets the binding provider for axis2.- Parameters:
bindingProvider
-
-
getBindingProvider
public javax.xml.ws.BindingProvider getBindingProvider()
Returns the binding provider for axis2.- Returns:
- bindingProvider
-
toString
public java.lang.String toString()
Returns the string of this object's properties.- Overrides:
toString
in classjava.lang.Object
- Returns:
- string representation of this object
-
-