@Override public Iterator<byte[]> iterator() { return getAuthorizations().iterator(); } }
@Override public Iterator<byte[]> iterator() { return getAuthorizations().iterator(); } }
/** * Creates a new {@link Authorizations} object with escaped forms of the * authorizations in the given object. * * @param auths original authorizations * @return authorizations object with escaped authorization strings * @see #escape(byte[], boolean) */ static Authorizations escape(Authorizations auths) { ArrayList<byte[]> retAuths = new ArrayList<byte[]>(auths.getAuthorizations().size()); for (byte[] auth : auths.getAuthorizations()) retAuths.add(escape(auth, false)); return new Authorizations(retAuths); }
/** * Creates a new {@link Authorizations} object with escaped forms of the * authorizations in the given object. * * @param auths original authorizations * @return authorizations object with escaped authorization strings * @see #escape(byte[], boolean) */ static Authorizations escape(Authorizations auths) { ArrayList<byte[]> retAuths = new ArrayList<byte[]>(auths.getAuthorizations().size()); for (byte[] auth : auths.getAuthorizations()) retAuths.add(escape(auth, false)); return new Authorizations(retAuths); }