List of usage examples for javax.crypto.spec PSource.PSpecified PSource.PSpecified
public PSpecified(byte[] p)
p
as the encoding input P. From source file:it.scoppelletti.programmerpower.security.spi.PSpecifiedFactory.java
public PSource newInstance(Properties props, String prefix) { String name, value;/* w w w . jav a2 s. com*/ byte[] p; PSource pSrc; name = Strings.concat(prefix, PSpecifiedFactory.PROP_P); value = props.getProperty(name); if (Strings.isNullOrEmpty(value)) { throw new ArgumentNullException(name); } try { p = Hex.decodeHex(value.toCharArray()); } catch (DecoderException ex) { throw SecurityUtils.toSecurityException(ex); } pSrc = new PSource.PSpecified(p); return pSrc; }