@Test public void encodeIssuerShouldSucceed() { String issuer = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-~_@:!$'()*,;?/ +&="; String expected = issuer.substring(0, issuer.length() - 4) + "%20" + "%" + Integer.toHexString('+').toUpperCase(Locale.US) + "%" + Integer.toHexString('&').toUpperCase(Locale.US) + "%" + Integer.toHexString('=').toUpperCase(Locale.US); assertEquals(expected, OTPAuthURI.encodeIssuer(issuer)); }
public static final String encodeIssuer(String issuer) { Preconditions.checkNotNull(issuer); return safeEncodeIssuer(issuer); }
OTPAuthURI { public static final String encodeIssuer(String issuer) { Preconditions.checkNotNull(issuer); return safeEncodeIssuer(issuer); } }
OTPAuthURI { public static final String encodeIssuer(String issuer) { Preconditions.checkNotNull(issuer); return safeEncodeIssuer(issuer); } OTPAuthURI(OTPKey key, String issuer, String label, long counter, int digits, long timeStep); }
OTPAuthURI { public static final String encodeIssuer(String issuer) { Preconditions.checkNotNull(issuer); return safeEncodeIssuer(issuer); } OTPAuthURI(OTPKey key, String issuer, String label, long counter, int digits, long timeStep); OTPKey getKey(); String getIssuer(); String getEncodedIssuer(); String getLabel(); String getEncodedLabel(); long getCounter(); int getDigits(); long getTimeStep(); boolean isHOTP(); boolean isTOTP(); String toPlainTextUriString(); String toUriString(); static final String encodeLabel(String label); static final String encodeIssuer(String issuer); }
OTPAuthURI { public static final String encodeIssuer(String issuer) { Preconditions.checkNotNull(issuer); return safeEncodeIssuer(issuer); } OTPAuthURI(OTPKey key, String issuer, String label, long counter, int digits, long timeStep); OTPKey getKey(); String getIssuer(); String getEncodedIssuer(); String getLabel(); String getEncodedLabel(); long getCounter(); int getDigits(); long getTimeStep(); boolean isHOTP(); boolean isTOTP(); String toPlainTextUriString(); String toUriString(); static final String encodeLabel(String label); static final String encodeIssuer(String issuer);  }