public class KeyParams extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
KeyParams(KeyType keyType,
KeyIdType keyIdType)
Create a key generation parameter.
|
protected |
KeyParams(KeyType keyType,
Name.Component keyId)
Create a key generation parameter.
|
| Modifier and Type | Method and Description |
|---|---|
Name.Component |
getKeyId() |
KeyIdType |
getKeyIdType() |
KeyType |
getKeyType() |
void |
setKeyId(Name.Component keyId) |
protected KeyParams(KeyType keyType, KeyIdType keyIdType)
keyType - The type for the created key.keyIdType - The method for how the key id should be generated, which
must not be KeyIdType.USER_SPECIFIED.AssertionError - if keyIdType is KeyIdType.USER_SPECIFIED.protected KeyParams(KeyType keyType, Name.Component keyId)
keyType - The type for the created key.keyId - The user-specified key ID. This sets the keyIdType to
KeyIdType.USER_SPECIFIED. keyId must not be empty.AssertionError - if keyId is empty.public final KeyType getKeyType()
public final KeyIdType getKeyIdType()
public final void setKeyId(Name.Component keyId)
public final Name.Component getKeyId()
Copyright © 2019. All rights reserved.