public enum SigningPolicy extends java.lang.Enum<SigningPolicy>
| Enum Constant and Description |
|---|
ECDSA_SHA256
Elliptic Curve Digital Signature Algorithm (DSA) coupled with the Secure Hash Algorithm 256 (SHA256) algorithm.
|
EHEALTH_CERT
This is a combo policy that can be used for messages signed with eHealth Certificates: it combines
RSASSA_PSS_SHA256 and ECDSA_SHA256. |
EID
This is a combo policy that can be used for messages signed with a Belgium eID: it combines
RSA_SHA256 and ECDSA_SHA256. |
RSA_SHA256
RSA signature scheme using SHA256 as hash algorithm.
|
RSASSA_PSS_SHA256
RSASSA-PSS signature scheme using SHA256 as hash algorithm, MGF1 (with SHA256) as mask generation function, 32 as salt length, and 1 as trailer field.
|
WEB_AUTHN
This is a combo policy that can be used for messages signed with a registered Public Key: it combines
RSASSA_PSS_SHA256 and ECDSA_SHA256. |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.lang.String> |
getAltEncryptionAlgorithmOIDs()
Deprecated.
|
java.lang.String |
getDigestAlgorithmOID() |
java.lang.String |
getEncryptionAlgorithmOID()
Deprecated.
|
java.util.Set<java.lang.String> |
getEncryptionAlgorithmOIDs() |
KeyType |
getKeyType() |
static SigningPolicy |
getPolicyByKeyType(SigningPolicy policy,
KeyType keyType) |
static java.util.Set<SigningPolicy> |
getPolicySet(SigningPolicy source) |
java.lang.String |
getSignatureAlgorithmName() |
int |
getSignKeySize() |
static SigningPolicy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SigningPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SigningPolicy RSASSA_PSS_SHA256
public static final SigningPolicy RSA_SHA256
public static final SigningPolicy ECDSA_SHA256
public static final SigningPolicy EHEALTH_CERT
RSASSA_PSS_SHA256 and ECDSA_SHA256. It will depend on whether the given key is RSA or EC which policy will be applied.public static final SigningPolicy EID
RSA_SHA256 and ECDSA_SHA256. It will depend on whether the given key is RSA or EC which policy will be applied.public static final SigningPolicy WEB_AUTHN
RSASSA_PSS_SHA256 and ECDSA_SHA256. It will depend on whether the given key is RSA or EC which policy will be applied.public static SigningPolicy[] values()
for (SigningPolicy c : SigningPolicy.values()) System.out.println(c);
public static SigningPolicy valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic KeyType getKeyType()
public int getSignKeySize()
public java.lang.String getDigestAlgorithmOID()
public java.lang.String getSignatureAlgorithmName()
@Deprecated public java.lang.String getEncryptionAlgorithmOID()
getEncryptionAlgorithmOIDs()@Deprecated public java.util.List<java.lang.String> getAltEncryptionAlgorithmOIDs()
getEncryptionAlgorithmOIDs()public java.util.Set<java.lang.String> getEncryptionAlgorithmOIDs()
public static SigningPolicy getPolicyByKeyType(SigningPolicy policy, KeyType keyType)
public static java.util.Set<SigningPolicy> getPolicySet(SigningPolicy source)
Copyright © 2021 eHealth. All rights reserved.