Interface SecurityEntityFactory<T>

  • Type Parameters:
    T - Type of security entity being generated by this factory

    public interface SecurityEntityFactory<T>
    • Method Detail

      • getEntityType

        java.lang.Class<T> getEntityType()
      • getInstance

        T getInstance​(java.lang.String algorithm)
               throws java.security.GeneralSecurityException
        Throws:
        java.security.GeneralSecurityException
      • toDefaultFactory

        static <F> SecurityEntityFactory<F> toDefaultFactory​(java.lang.Class<F> entityType)
                                                      throws java.lang.ReflectiveOperationException
        Throws:
        java.lang.ReflectiveOperationException
      • toNamedProviderFactory

        static <F> SecurityEntityFactory<F> toNamedProviderFactory​(java.lang.Class<F> entityType,
                                                                   java.lang.String name)
                                                            throws java.lang.ReflectiveOperationException
        Throws:
        java.lang.ReflectiveOperationException
      • toProviderInstanceFactory

        static <F> SecurityEntityFactory<F> toProviderInstanceFactory​(java.lang.Class<F> entityType,
                                                                      java.security.Provider provider)
                                                               throws java.lang.ReflectiveOperationException
        Throws:
        java.lang.ReflectiveOperationException