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.CallbackThis 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.BindingProvidergetBindingProvider()Returns the binding provider for axis2.java.lang.StringgetClientLabel()Returns the client label to generate the derived key token.java.lang.StringgetEncyptionAlgorithm()Returns the algorithm for the encryption.intgetEncyptionKeyBytesLength()Returns the length of key for encryption.java.lang.StringgetServiceEndpointAddress()Returns the server endpoint address.java.lang.StringgetServiceLabel()Returns the service label to generate the derived key token.java.lang.StringgetSignatureAlgorithm()Returns the algorithm for signatureintgetSignatureKeyBytesLength()Returns the length of key for signatureSecurityContextTokengetToken()Returns the security context tokenWSSConsumingContextgetWSSConsumingContext()Gets WSSConsumingContext object.WSSGenerationContextgetWSSGenerationContext()Returns WSSGenerationContext object.booleanisRequiredDKT()Checks whether it requires the derived key token or notvoidsetBindingProvider(javax.xml.ws.BindingProvider bindingProvider)Sets the binding provider for axis2.voidsetClientLabel(java.lang.String clientLabel)Sets the client label to generate the derived key token.voidsetEncyptionAlgorithm(java.lang.String encyptionAlgorithm)Sets the algorithm for encryption.voidsetEncyptionKeyBytesLength(int encyptionKeyBytesLength)Sets the length of key for encryptionvoidsetRequiredDKT(boolean requiredDKT)Sets the required derived key token.voidsetServiceEndpointAddress(java.lang.String serviceEndpointAddress)Returns the server endpoint address.voidsetServiceLabel(java.lang.String serviceLabel)Sets the service label to generate the derived key token.voidsetSignatureAlgorithm(java.lang.String signatureAlgorithm)Sets the algorithm for signature.voidsetSignatureKeyBytesLength(int signatureKeyBytesLength)Sets the length of key for signaturevoidsetToken(SecurityContextToken token)Sets the security context tokenvoidsetWSSConsumingContext(WSSConsumingContext concont)Sets WSSConsumingContext object.voidsetWSSGenerationContext(WSSGenerationContext gencont)Sets WSSGenerationContext object.java.lang.StringtoString()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:
toStringin classjava.lang.Object- Returns:
- string representation of this object
-
-