PUB
- Generic public key typePRV
- Generic private key typepublic abstract class AbstractIdentityResourceLoader<PUB extends java.security.PublicKey,PRV extends java.security.PrivateKey> extends AbstractLoggingBean implements IdentityResourceLoader<PUB,PRV>
Modifier and Type | Field and Description |
---|---|
private java.util.Collection<java.lang.String> |
names |
private java.lang.Class<PRV> |
prvType |
private java.lang.Class<PUB> |
pubType |
log
Modifier | Constructor and Description |
---|---|
protected |
AbstractIdentityResourceLoader(java.lang.Class<PUB> pubType,
java.lang.Class<PRV> prvType,
java.util.Collection<java.lang.String> names) |
Modifier and Type | Method and Description |
---|---|
java.lang.Class<PRV> |
getPrivateKeyType() |
java.lang.Class<PUB> |
getPublicKeyType() |
java.util.Collection<java.lang.String> |
getSupportedTypeNames() |
getSimplifiedLogger
private final java.lang.Class<PUB extends java.security.PublicKey> pubType
private final java.lang.Class<PRV extends java.security.PrivateKey> prvType
private final java.util.Collection<java.lang.String> names
public final java.lang.Class<PUB> getPublicKeyType()
getPublicKeyType
in interface IdentityResourceLoader<PUB extends java.security.PublicKey,PRV extends java.security.PrivateKey>
Class
of the PublicKey
that is the result
of decodingpublic final java.lang.Class<PRV> getPrivateKeyType()
getPrivateKeyType
in interface IdentityResourceLoader<PUB extends java.security.PublicKey,PRV extends java.security.PrivateKey>
Class
of the PrivateKey
that matches the
public onepublic java.util.Collection<java.lang.String> getSupportedTypeNames()
getSupportedTypeNames
in interface IdentityResourceLoader<PUB extends java.security.PublicKey,PRV extends java.security.PrivateKey>
Collection
of OpenSSH
key type names that
are supported by this decoder - e.g., ECDSA keys have several curve names.
Caveat: this collection may be un-modifiable...