@Test public void encodeLabelShouldSucceed() { String label = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-~_@:!$&'()*+,;= ?/"; String expected = label.substring(0, label.length() - 3) + "%20" + "%" + Integer.toHexString('?').toUpperCase(Locale.US) + "%" + Integer.toHexString('/').toUpperCase(Locale.US); assertEquals(expected, OTPAuthURI.encodeLabel(label)); }
public static final String encodeLabel(String label) { Preconditions.checkNotNull(label); return safeEncodeLabel(label); }
OTPAuthURI { public static final String encodeLabel(String label) { Preconditions.checkNotNull(label); return safeEncodeLabel(label); } }
OTPAuthURI { public static final String encodeLabel(String label) { Preconditions.checkNotNull(label); return safeEncodeLabel(label); } OTPAuthURI(OTPKey key, String issuer, String label, long counter, int digits, long timeStep); }
OTPAuthURI { public static final String encodeLabel(String label) { Preconditions.checkNotNull(label); return safeEncodeLabel(label); } 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 encodeLabel(String label) { Preconditions.checkNotNull(label); return safeEncodeLabel(label); } 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);  }