1
package org.bouncycastle.asn1;
3
import java.io.IOException;
6
* DER T61String object.
8
public class DERT61String
20
* @param string - bytes representing the string
25
this.string = new String(string, 0);
28
public String getString()
37
byte[] bytes = new byte[string.length()];
39
string.getBytes(0, string.length(), bytes, 0);
41
out.writeEncoded(T61_STRING, bytes);
44
public boolean equals(
47
if ((o == null) || !(o instanceof DERT61String))
52
return this.getString().equals(((DERT61String)o).getString());
57
return this.getString().hashCode();