@Test public void testPublicInformationFromByteArray() { PskPublicInformation information1 = PskPublicInformation.fromByteArray("test".getBytes(UTF_8)); PskPublicInformation information2 = new PskPublicInformation("test"); assertEquals(information1, information2); }
public static PskPublicInformation fromByteArray(byte[] byteArray) { if (byteArray == null || byteArray.length == 0) { return EMPTY; } return new PskPublicInformation(byteArray); }
PskPublicInformation extends Bytes { public static PskPublicInformation fromByteArray(byte[] byteArray) { if (byteArray == null || byteArray.length == 0) { return EMPTY; } return new PskPublicInformation(byteArray); } }
PskPublicInformation extends Bytes { public static PskPublicInformation fromByteArray(byte[] byteArray) { if (byteArray == null || byteArray.length == 0) { return EMPTY; } return new PskPublicInformation(byteArray); } private  PskPublicInformation(byte[] publicInfoBytes);  PskPublicInformation(String publicInfo);  PskPublicInformation(String publicInfo, byte[] publicInfoBytes); }
PskPublicInformation extends Bytes { public static PskPublicInformation fromByteArray(byte[] byteArray) { if (byteArray == null || byteArray.length == 0) { return EMPTY; } return new PskPublicInformation(byteArray); } private  PskPublicInformation(byte[] publicInfoBytes);  PskPublicInformation(String publicInfo);  PskPublicInformation(String publicInfo, byte[] publicInfoBytes); void normalize(String publicInfo); boolean isCompliantEncoding(); String getPublicInfoAsString(); @Override String toString(); static PskPublicInformation fromByteArray(byte[] byteArray); }
PskPublicInformation extends Bytes { public static PskPublicInformation fromByteArray(byte[] byteArray) { if (byteArray == null || byteArray.length == 0) { return EMPTY; } return new PskPublicInformation(byteArray); } private  PskPublicInformation(byte[] publicInfoBytes);  PskPublicInformation(String publicInfo);  PskPublicInformation(String publicInfo, byte[] publicInfoBytes); void normalize(String publicInfo); boolean isCompliantEncoding(); String getPublicInfoAsString(); @Override String toString(); static PskPublicInformation fromByteArray(byte[] byteArray); static final PskPublicInformation EMPTY; }