Package org.bouncycastle.tls
Class BasicTlsPSKExternal
- java.lang.Object
-
- org.bouncycastle.tls.BasicTlsPSKExternal
-
- All Implemented Interfaces:
TlsPSK,TlsPSKExternal
public class BasicTlsPSKExternal extends java.lang.Object implements TlsPSKExternal
-
-
Field Summary
Fields Modifier and Type Field Description protected byte[]identityprotected TlsSecretkeyprotected intprfAlgorithm
-
Constructor Summary
Constructors Constructor Description BasicTlsPSKExternal(byte[] identity, TlsSecret key)BasicTlsPSKExternal(byte[] identity, TlsSecret key, int prfAlgorithm)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getIdentity()TlsSecretgetKey()intgetPRFAlgorithm()
-
-
-
Field Detail
-
identity
protected final byte[] identity
-
key
protected final TlsSecret key
-
prfAlgorithm
protected final int prfAlgorithm
-
-
Method Detail
-
getIdentity
public byte[] getIdentity()
- Specified by:
getIdentityin interfaceTlsPSK
-
getPRFAlgorithm
public int getPRFAlgorithm()
- Specified by:
getPRFAlgorithmin interfaceTlsPSK
-
-