/** * Method creates a new PDPProxy. * * @return PDPProxy. */ public PDPProxy create() { return new PermissionCollectionPDP(new FileFinder(getFileLocation()).getInputStream()); }
public void init() { m_keyPairsDirectory = new FileFinder(m_filePath).getFile(); }
String filename = getFileName(); File file = null; URL fileIn = getClass().getResource("/" + filename);
String filename = getFileName(); InputStream fileIn = getClass().getResourceAsStream("/" + filename); if (fileIn != null) {
/** * Method creates a new PDPProxy. * * @return PDPProxy. */ public PDPProxy create() { return new DefaultPDPProxy(new FileFinder(getFileLocation()).getInputStream()); }
public void init(final PolicyFinder policyFinder) { if (LOG.isTraceEnabled()) { LOG.trace("FilePolicyFinderModule.init(" + policyFinder + ")"); } addPolicyDir(new FileFinder(getPolicyDirectory()).getFile()); super.init(policyFinder); }
public KeystoreKeyPairProvider create() { return new KeystoreKeyPairProvider(getKeystoreType(), new FileFinder(getFileName()).getInputStream(), getPassword().toCharArray()); } }
/** * * Loads the {@link PermissionSet} instances from the specified file. * */ public void init() { XmlSimplePermissionsDocument lSimplePermissionsDoc; try { File file = new FileFinder(m_pathString).getFile(); lSimplePermissionsDoc = XmlSimplePermissionsDocument.Factory.parse(file); } catch (Exception e) { throw new RuntimeException("Could not load Permission Sets from " + m_pathString.toString(), e); } m_permissionSets = getPermissionSets(lSimplePermissionsDoc.getSimplePermissions()); }
private WSSCapabilitiesDocument createPesCapabilities() { // dont'change this to a static or member approach ! // the current dynamic approach makes changes in the caps template // possible // without restarting the server context. InputStream capsDocFileStream = new FileFinder(getCapabilitiesFileName()).getInputStream(); WSSCapabilitiesDocument capsDoc = WSSCapabilitiesDocument.parse(capsDocFileStream); capsDoc.setAuthenticationMethods(getAuthenticationMethods()); return capsDoc; }
configPath = new FileFinder(getFilePath()).getFile(); } catch (IllegalArgumentException e) { throw new IllegalArgumentException("File path <" + getFilePath() + "> does not exist or can't be created."); configPath = new FileFinder(getFilePath()).getFile();
throw new IllegalStateException("template for module <" + module + "> not configured"); InputStream template = new FileFinder(moduleSecurityConfigTemplateFile).getInputStream();