|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opcfoundation.ua.transport.tcp.impl.SecurityToken
public class SecurityToken
Security Token of a tcp connection
| Constructor Summary | |
|---|---|
SecurityToken(SecurityConfiguration securityProfile,
int secureChannelId,
int tokenId,
long creationTime,
long lifetime,
ByteString serverNonce,
ByteString clientNonce)
Create new security token. |
|
| Method Summary | |
|---|---|
protected Mac |
createHmac(byte[] secret)
createHmac. |
Mac |
createLocalHmac()
Create new localHmac |
Mac |
createRemoteHmac()
Crate new remoteHmac |
long |
getCreationTime()
Getter for the field creationTime. |
long |
getLifeTime()
getLifeTime. |
byte[] |
getLocalEncryptingKey()
Getter for the field localEncryptingKey. |
byte[] |
getLocalInitializationVector()
Getter for the field localInitializationVector. |
ByteString |
getLocalNonce()
Getter for the field localNonce. |
byte[] |
getLocalSigningKey()
Getter for the field localSigningKey. |
MessageSecurityMode |
getMessageSecurityMode()
getMessageSecurityMode. |
byte[] |
getRemoteEncryptingKey()
Getter for the field remoteEncryptingKey. |
byte[] |
getRemoteInitializationVector()
Getter for the field remoteInitializationVector. |
ByteString |
getRemoteNonce()
Getter for the field remoteNonce. |
byte[] |
getRemoteSigningKey()
Getter for the field remoteSigningKey. |
long |
getRenewTime()
getRenewTime. |
int |
getSecureChannelId()
Getter for the field secureChannelId. |
SecurityConfiguration |
getSecurityConfiguration()
Getter for the field securityConfiguration. |
SecurityPolicy |
getSecurityPolicy()
getSecurityPolicy. |
int |
getTokenId()
Getter for the field tokenId. |
boolean |
isExpired()
Return security tokens expired status. |
boolean |
isTimeToRenew()
Return security token time to renew status. |
boolean |
isValid()
Return security token validity. |
void |
setLocalEncryptingKey(byte[] localEncryptingKey)
Setter for the field localEncryptingKey. |
void |
setLocalInitializationVector(byte[] localInitializationVector)
Setter for the field localInitializationVector. |
void |
setLocalSigningKey(byte[] localSigningKey)
Setter for the field localSigningKey. |
void |
setRemoteEncryptingKey(byte[] remoteEncryptingKey)
Setter for the field remoteEncryptingKey. |
void |
setRemoteInitializationVector(byte[] remoteInitializationVector)
Setter for the field remoteInitializationVector. |
void |
setRemoteSigningKey(byte[] remoteSigningKey)
Setter for the field remoteSigningKey. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SecurityToken(SecurityConfiguration securityProfile,
int secureChannelId,
int tokenId,
long creationTime,
long lifetime,
ByteString serverNonce,
ByteString clientNonce)
throws ServiceResultException
securityProfile - a SecurityConfiguration object.secureChannelId - a int.tokenId - a int.creationTime - a long.lifetime - a long.serverNonce - an array of byte.clientNonce - an array of byte.
ServiceResultException - if any.| Method Detail |
|---|
public boolean isValid()
public boolean isTimeToRenew()
public boolean isExpired()
public SecurityPolicy getSecurityPolicy()
getSecurityPolicy.
SecurityPolicy object.public SecurityConfiguration getSecurityConfiguration()
Getter for the field securityConfiguration.
SecurityConfiguration object.public MessageSecurityMode getMessageSecurityMode()
getMessageSecurityMode.
MessageSecurityMode object.public byte[] getLocalSigningKey()
Getter for the field localSigningKey.
public void setLocalSigningKey(byte[] localSigningKey)
Setter for the field localSigningKey.
localSigningKey - an array of byte.public byte[] getLocalEncryptingKey()
Getter for the field localEncryptingKey.
public void setLocalEncryptingKey(byte[] localEncryptingKey)
Setter for the field localEncryptingKey.
localEncryptingKey - an array of byte.public byte[] getLocalInitializationVector()
Getter for the field localInitializationVector.
public void setLocalInitializationVector(byte[] localInitializationVector)
Setter for the field localInitializationVector.
localInitializationVector - an array of byte.public byte[] getRemoteSigningKey()
Getter for the field remoteSigningKey.
public void setRemoteSigningKey(byte[] remoteSigningKey)
Setter for the field remoteSigningKey.
remoteSigningKey - an array of byte.public byte[] getRemoteEncryptingKey()
Getter for the field remoteEncryptingKey.
public void setRemoteEncryptingKey(byte[] remoteEncryptingKey)
Setter for the field remoteEncryptingKey.
remoteEncryptingKey - an array of byte.public byte[] getRemoteInitializationVector()
Getter for the field remoteInitializationVector.
public void setRemoteInitializationVector(byte[] remoteInitializationVector)
Setter for the field remoteInitializationVector.
remoteInitializationVector - an array of byte.
public Mac createRemoteHmac()
throws ServiceResultException
ServiceResultException - if any.
public Mac createLocalHmac()
throws ServiceResultException
ServiceResultException - if any.
protected Mac createHmac(byte[] secret)
throws ServiceResultException
createHmac.
secret - an array of byte.
Mac object.
ServiceResultException - if any.public ByteString getLocalNonce()
Getter for the field localNonce.
public ByteString getRemoteNonce()
Getter for the field remoteNonce.
public int getSecureChannelId()
Getter for the field secureChannelId.
public int getTokenId()
Getter for the field tokenId.
public long getCreationTime()
Getter for the field creationTime.
public long getLifeTime()
getLifeTime.
public long getRenewTime()
getRenewTime.
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||