com.sun.xml.wss.impl.policy.mls
Class AuthenticationTokenPolicy.KerberosTokenBinding

java.lang.Object
  extended by com.sun.xml.wss.impl.policy.MLSPolicy
      extended by com.sun.xml.wss.impl.policy.mls.WSSPolicy
          extended by com.sun.xml.wss.impl.policy.mls.KeyBindingBase
              extended by com.sun.xml.wss.impl.policy.mls.AuthenticationTokenPolicy.KerberosTokenBinding
All Implemented Interfaces:
SecurityPolicy, Cloneable
Enclosing class:
AuthenticationTokenPolicy

public static class AuthenticationTokenPolicy.KerberosTokenBinding
extends KeyBindingBase

A policy representing Kerberos Token. An instance of this class can be used as concrete feature binding for an AuthenticationTokenPolicy


Field Summary
 
Fields inherited from class com.sun.xml.wss.impl.policy.mls.KeyBindingBase
claims, claimsDialect, INCLUDE_ALWAYS, INCLUDE_ALWAYS_TO_RECIPIENT, INCLUDE_ALWAYS_TO_RECIPIENT_VER2, INCLUDE_ALWAYS_VER2, INCLUDE_NEVER, INCLUDE_NEVER_VER2, INCLUDE_ONCE, INCLUDE_ONCE_VER2, includeToken, issuer, policyToken
 
Fields inherited from class com.sun.xml.wss.impl.policy.mls.WSSPolicy
_featureBinding, _isOptional, _keyBinding, _policyIdentifier, bsp, UUID
 
Fields inherited from class com.sun.xml.wss.impl.policy.MLSPolicy
readonly
 
Constructor Summary
AuthenticationTokenPolicy.KerberosTokenBinding()
          Default constructor
 
Method Summary
 Object clone()
          Clone operator
 boolean equals(WSSPolicy policy)
          equals operator
 boolean equalsIgnoreTargets(WSSPolicy policy)
           
 String getEncodingType()
           
 String getKeyAlgorithm()
           
 String getReferenceType()
           
 SecretKey getSecretKey()
           
 String getSTRID()
           
 byte[] getTokenValue()
           
 String getType()
          Get the type of the policy.
 String getValueType()
           
 void setEncodingType(String encodingType)
           
 void setIncludeToken(String include)
          override the method from KeyBindingBase as we will support IncludeToken=Once in Kerberos token profile
 void setKeyAlgorithm(String keyAlgorithm)
           
 void setReferenceType(String referenceType)
          set the ReferenceType
 void setSecretKey(SecretKey secretKey)
          Set the symmetric key
 void setSTRID(String id)
           
 void setTokenValue(byte[] token)
           
 void setValueType(String valueType)
          set the ValueType
 
Methods inherited from class com.sun.xml.wss.impl.policy.mls.KeyBindingBase
getClaims, getIncludeToken, getIssuer, policyTokenWasSet, setClaims, setIssuer, setPolicyTokenFlag
 
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, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthenticationTokenPolicy.KerberosTokenBinding

public AuthenticationTokenPolicy.KerberosTokenBinding()
Default constructor

Method Detail

setValueType

public void setValueType(String valueType)
set the ValueType

Parameters:
valueType - attribute like Kerberosv5_AP_REQ

setReferenceType

public void setReferenceType(String referenceType)
set the ReferenceType

Parameters:
referenceType - allowed values are Direct and KeyIdentifier

setEncodingType

public void setEncodingType(String encodingType)

setTokenValue

public void setTokenValue(byte[] token)

setSTRID

public void setSTRID(String id)

getSTRID

public String getSTRID()

getValueType

public String getValueType()
Returns:
valueType

getReferenceType

public String getReferenceType()
Returns:
referenceType

getEncodingType

public String getEncodingType()
Returns:
encodingType

getTokenValue

public byte[] getTokenValue()
Returns:
Token Value

setKeyAlgorithm

public void setKeyAlgorithm(String keyAlgorithm)
Parameters:
keyAlgorithm - the keyAlgorithm

getKeyAlgorithm

public String getKeyAlgorithm()
Returns:
the keyAlgorithm

setSecretKey

public void setSecretKey(SecretKey secretKey)
Set the symmetric key

Parameters:
secretKey - the SecretKey

getSecretKey

public SecretKey getSecretKey()
Returns:
SecretKey the symmetric key

clone

public Object clone()
Clone operator

Specified by:
clone in class WSSPolicy
Returns:
clone of this policy
See Also:
SignaturePolicy, EncryptionPolicy, AuthenticationTokenPolicy

equals

public boolean equals(WSSPolicy policy)
Description copied from class: WSSPolicy
equals operator

Specified by:
equals in class WSSPolicy
Parameters:
policy - to be compared for equality
Returns:
true if the argument policy is equal to this
See Also:
SignaturePolicy, EncryptionPolicy, AuthenticationTokenPolicy, PrivateKeyBinding, SymmetricKeyBinding

equalsIgnoreTargets

public boolean equalsIgnoreTargets(WSSPolicy policy)
Specified by:
equalsIgnoreTargets in class WSSPolicy

getType

public String getType()
Description copied from interface: SecurityPolicy
Get the type of the policy.

Implementation Note: Useful to avoid instanceof checks and String.equals checks

Returns:
the type of the policy

setIncludeToken

public void setIncludeToken(String include)
override the method from KeyBindingBase as we will support IncludeToken=Once in Kerberos token profile

Overrides:
setIncludeToken in class KeyBindingBase
Parameters:
include - the value of IncludeToken parameter


Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.