/** * Returns this credential as a character array. * * @return credential characters */ public char[] getChars() { return getString().toCharArray(); }
/** * Returns this credential as a character array. * * @return credential characters */ public char[] getChars() { return getString().toCharArray(); }
/** * Returns this credential as a character array. * * @return credential characters */ public char[] getChars() { return getString().toCharArray(); }
@Override public byte[] encode() { final List<DEREncoder> l = new ArrayList<>(); if (getUserIdentity() != null) { l.add(new ContextType(0, getUserIdentity())); } if (getOldPassword() != null) { l.add(new ContextType(1, getOldPassword().getString())); } if (getNewPassword() != null) { l.add(new ContextType(2, getNewPassword().getString())); } final ConstructedDEREncoder se = new ConstructedDEREncoder( UniversalDERTag.SEQ, l.toArray(new DEREncoder[l.size()])); return se.encode(); }
@Override public byte[] encode() { final List<DEREncoder> l = new ArrayList<>(); if (getUserIdentity() != null) { l.add(new ContextType(0, getUserIdentity())); } if (getOldPassword() != null) { l.add(new ContextType(1, getOldPassword().getString())); } if (getNewPassword() != null) { l.add(new ContextType(2, getNewPassword().getString())); } final ConstructedDEREncoder se = new ConstructedDEREncoder( UniversalDERTag.SEQ, l.toArray(new DEREncoder[l.size()])); return se.encode(); }
@Override public byte[] encode() { final List<DEREncoder> l = new ArrayList<>(); if (getUserIdentity() != null) { l.add(new ContextType(0, getUserIdentity())); } if (getOldPassword() != null) { l.add(new ContextType(1, getOldPassword().getString())); } if (getNewPassword() != null) { l.add(new ContextType(2, getNewPassword().getString())); } final ConstructedDEREncoder se = new ConstructedDEREncoder( UniversalDERTag.SEQ, l.toArray(new DEREncoder[l.size()])); return se.encode(); }