public class KeyAgreementProxy extends Object
KeyAgreementKeyAgreement| Constructor and Description |
|---|
KeyAgreementProxy() |
| Modifier and Type | Method and Description |
|---|---|
static javacard.security.KeyAgreement |
getInstance(byte algorithm,
boolean externalAccess)
Creates a
KeyAgreement object instance of the selected algorithm. |
public static final javacard.security.KeyAgreement getInstance(byte algorithm,
boolean externalAccess)
throws javacard.security.CryptoException
KeyAgreement object instance of the selected algorithm.algorithm - the desired key agreement algorithm
Valid codes listed in ALG_ .. constants above, for example, ALG_EC_SVDP_DHexternalAccess - if true indicates that the instance will be shared among
multiple applet instances and that the KeyAgreement instance will also be accessed (via a Shareable
interface) when the owner of the KeyAgreement instance is not the currently selected applet.
If true the implementation must not
allocate CLEAR_ON_DESELECT transient space for internal data.javacard.security.CryptoException - with the following reason codes:
CryptoException.NO_SUCH_ALGORITHM if the requested
algorithm or shared access mode is not supported.