/** * getInstance * <p/> * Returns an instance of SAMLIssuer. This method uses the specified filename * to load a property file. This file shall use the property * <code>org.apache.ws.security.saml.issuerClass</code> * to define the classname of the SAMLIssuer implementation. The file * may contain other property definitions as well. These properties are * handed over to the SAMLIssuer implementation. The specified file * is loaded with the <code>Loader.getResource()</code> method. * <p/> * * @param propFilename The name of the property file to load * @return The SAMLIssuer implementation that was defined * @throws WSSecurityException if there is an error in loading the crypto properties */ public static SAMLIssuer getInstance(String propFilename) throws WSSecurityException { return getInstance(getProperties(propFilename)); }
/** * getInstance * <p/> * Returns an instance of SAMLIssuer. This method uses the specified filename * to load a property file. This file shall use the property * <code>org.apache.ws.security.saml.issuerClass</code> * to define the classname of the SAMLIssuer implementation. The file * may contain other property definitions as well. These properties are * handed over to the SAMLIssuer implementation. The specified file * is loaded with the <code>Loader.getResource()</code> method. * <p/> * * @param propFilename The name of the property file to load * @return The SAMLIssuer implementation that was defined * @throws WSSecurityException if there is an error in loading the crypto properties */ public static SAMLIssuer getInstance(String propFilename) throws WSSecurityException { return getInstance(getProperties(propFilename)); }