/** * getInstance * <p/> * Returns an instance of SAMLIssuer. The properties are handed over the the SAMLIssuer * implementation. The properties can be <code>null</code>. It is dependent on the * SAMLIssuer implementation how the initialization is done in this case. * <p/> * * @param samlClass This is the SAMLIssuer implementation class. No default is * provided here. * @param properties The Properties that are forwarded to the SAMLIssuer implementation. * These properties are dependent on the SAMLIssuer implementation * @return The SAMLIssuer implementation or null if no samlClassName was defined * @throws WSSecurityException if there is an error in loading the crypto properties */ public static SAMLIssuer getInstance( Class<? extends SAMLIssuer> samlClass, Properties properties ) throws WSSecurityException { return loadClass(samlClass, properties); }
/** * getInstance * <p/> * Returns an instance of SAMLIssuer. The properties are handed over the the SAMLIssuer * implementation. The properties can be <code>null</code>. It is dependent on the * SAMLIssuer implementation how the initialization is done in this case. * <p/> * * @param samlClass This is the SAMLIssuer implementation class. No default is * provided here. * @param properties The Properties that are forwarded to the SAMLIssuer implementation. * These properties are dependent on the SAMLIssuer implementation * @return The SAMLIssuer implementation or null if no samlClassName was defined * @throws WSSecurityException if there is an error in loading the crypto properties */ public static SAMLIssuer getInstance( Class<? extends SAMLIssuer> samlClass, Properties properties ) throws WSSecurityException { return loadClass(samlClass, properties); }
public static SAMLIssuer getInstance(Properties properties) throws WSSecurityException { String samlClassName = properties.getProperty("org.apache.ws.security.saml.issuerClass"); Class<? extends SAMLIssuer> samlIssuerClass = null; if (samlClassName == null || samlClassName.equals("org.apache.ws.security.saml.SAMLIssuerImpl")) { samlIssuerClass = DEFAULT_SAML_CLASS; } else { try { // instruct the class loader to load the crypto implementation samlIssuerClass = Loader.loadClass(samlClassName, SAMLIssuer.class); } catch (ClassNotFoundException ex) { if (LOG.isDebugEnabled()) { LOG.debug(ex.getMessage(), ex); } throw new WSSecurityException(samlClassName + " Not Found", ex); } } return loadClass(samlIssuerClass, properties); }
public static SAMLIssuer getInstance(Properties properties) throws WSSecurityException { String samlClassName = properties.getProperty("org.apache.ws.security.saml.issuerClass"); Class<? extends SAMLIssuer> samlIssuerClass = null; if (samlClassName == null || samlClassName.equals("org.apache.ws.security.saml.SAMLIssuerImpl")) { samlIssuerClass = DEFAULT_SAML_CLASS; } else { try { // instruct the class loader to load the crypto implementation samlIssuerClass = Loader.loadClass(samlClassName, SAMLIssuer.class); } catch (ClassNotFoundException ex) { if (LOG.isDebugEnabled()) { LOG.debug(ex.getMessage(), ex); } throw new WSSecurityException(samlClassName + " Not Found", ex); } } return loadClass(samlIssuerClass, properties); }