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[]
identity
protected TlsSecret
key
protected int
prfAlgorithm
-
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()
TlsSecret
getKey()
int
getPRFAlgorithm()
-
-
-
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:
getIdentity
in interfaceTlsPSK
-
getPRFAlgorithm
public int getPRFAlgorithm()
- Specified by:
getPRFAlgorithm
in interfaceTlsPSK
-
-