Class LazyClientKeyIdentityProvider

    • Field Detail

      • locations

        private final java.util.Collection<? extends NamedResource> locations
      • ignoreNonExisting

        private final boolean ignoreNonExisting
    • Method Detail

      • getLocations

        public java.util.Collection<? extends NamedResource> getLocations()
      • isIgnoreNonExisting

        public boolean isIgnoreNonExisting()
      • loadKeys

        public java.lang.Iterable<java.security.KeyPair> loadKeys​(SessionContext session)
                                                           throws java.io.IOException,
                                                                  java.security.GeneralSecurityException
        Description copied from interface: KeyIdentityProvider
        Load available keys.
        Specified by:
        loadKeys in interface KeyIdentityProvider
        Parameters:
        session - The SessionContext for invoking this load command - may be null if not invoked within a session context (e.g., offline tool or session unknown).
        Returns:
        an Iterable instance of available keys - ignored if null
        Throws:
        java.io.IOException - If failed to read/parse the keys data
        java.security.GeneralSecurityException - If failed to generate the keys
      • loadClientIdentities

        protected java.lang.Iterable<java.security.KeyPair> loadClientIdentities​(SessionContext session,
                                                                                 NamedResource location)
                                                                          throws java.io.IOException,
                                                                                 java.security.GeneralSecurityException
        Throws:
        java.io.IOException
        java.security.GeneralSecurityException