Class AbstractIdentityResourceLoader<PUB extends java.security.PublicKey,​PRV extends java.security.PrivateKey>

    • Field Detail

      • pubType

        private final java.lang.Class<PUB extends java.security.PublicKey> pubType
      • prvType

        private final java.lang.Class<PRV extends java.security.PrivateKey> prvType
      • types

        private final java.util.NavigableSet<java.lang.String> types
    • Constructor Detail

      • AbstractIdentityResourceLoader

        protected AbstractIdentityResourceLoader​(java.lang.Class<PUB> pubType,
                                                 java.lang.Class<PRV> prvType,
                                                 java.util.Collection<java.lang.String> keyTypes)
    • Method Detail

      • getPublicKeyType

        public final java.lang.Class<PUB> getPublicKeyType()
        Specified by:
        getPublicKeyType in interface IdentityResourceLoader<PUB extends java.security.PublicKey,​PRV extends java.security.PrivateKey>
        Returns:
        The Class of the PublicKey that is the result of decoding
      • getPrivateKeyType

        public final java.lang.Class<PRV> getPrivateKeyType()
        Specified by:
        getPrivateKeyType in interface IdentityResourceLoader<PUB extends java.security.PublicKey,​PRV extends java.security.PrivateKey>
        Returns:
        The Class of the PrivateKey that matches the public one
      • getSupportedKeyTypes

        public java.util.NavigableSet<java.lang.String> getSupportedKeyTypes()
        Specified by:
        getSupportedKeyTypes in interface KeyTypeNamesSupport
        Returns:
        The case insensitive NavigableSet of OpenSSH key type names that are supported by this decoder - e.g., ssh-rsa, ssh-dss, ecdsa-sha2-nistp384. This is not a single name - e.g., ECDSA keys have several curve names. Caveat: this collection may be un-modifiable...