/** * Basic constructor - build from a string representing the token. * * @param token string representing the token. */ public AuthenticatorControl(String token) { this.token = new DERUTF8String(token); }
/** * Basic constructor - build from a string representing the token. * * @param token string representing the token. */ public AuthenticatorControl(String token) { this.token = new DERUTF8String(token); }
/** * Basic constructor - build from a string representing the token. * * @param token string representing the token. */ public RegTokenControl(String token) { this.token = new DERUTF8String(token); }
public PKIFreeText( String p) { this(new DERUTF8String(p)); }
public CMCStatusInfoV2Builder setStatusString(String statusString) { this.statusString = new DERUTF8String(statusString); return this; }
public CMCStatusInfoBuilder setStatusString(String statusString) { this.statusString = new DERUTF8String(statusString); return this; }
public DirectoryString(String string) { this.string = new DERUTF8String(string); }
/** * Basic constructor - build from a string representing the token. * * @param token string representing the token. */ public RegTokenControl(String token) { this.token = new DERUTF8String(token); }
public PKIFreeText( String p) { this(new DERUTF8String(p)); }
public DirectoryString(String string) { this.string = new DERUTF8String(string); }
/** * Encoded every value into a UTF8String. * <p> * Subclasses should overwrite * this method to change the encoding of specific types. * </p> * * @param oid the DN oid of the value * @param value the String representation of the value * @return a the value encoded into a ASN.1 object. Never returns <code>null</code>. */ protected ASN1Encodable encodeStringValue(ASN1ObjectIdentifier oid, String value) { return new DERUTF8String(value); }
/** * Creates a new <code>DisplayText</code> instance. * * @param text the text to encapsulate. Strings longer than 200 * characters are truncated. */ public DisplayText(String text) { // by default use UTF8String if (text.length() > DISPLAY_TEXT_MAXIMUM_SIZE) { text = text.substring(0, DISPLAY_TEXT_MAXIMUM_SIZE); } contentType = CONTENT_TYPE_UTF8STRING; contents = new DERUTF8String(text); }
private void addStatusString(String statusString) { statusStrings.add(new DERUTF8String(statusString)); }
private void addStatusString(String statusString) { statusStrings.add(new DERUTF8String(statusString)); }
/** * @deprecated use getLocality() */ public DERUTF8String getLocalityName() { if (localityName == null) { return null; } return new DERUTF8String(getLocality().getString()); }
/** * @deprecated use getCountry() */ public DERUTF8String getCountryName() { if (countryName == null) { return null; } return new DERUTF8String(getCountry().getString()); }
public PKIFreeText( String[] strs) { ASN1EncodableVector v = new ASN1EncodableVector(); for (int i = 0; i < strs.length; i++) { v.add(new DERUTF8String(strs[i])); } strings = new DERSequence(v); }
public PKIFreeText( String[] strs) { ASN1EncodableVector v = new ASN1EncodableVector(); for (int i = 0; i < strs.length; i++) { v.add(new DERUTF8String(strs[i])); } strings = new DERSequence(v); }
public ASN1Primitive toASN1Primitive() { ASN1EncodableVector v = new ASN1EncodableVector(); v.add(new ASN1Integer(type)); v.add(new DERUTF8String(identifier)); v.add(creationDate); v.add(lastModifiedDate); v.add(data); if (comment != null) { v.add(new DERUTF8String(comment)); } return new DERSequence(v); } }
public ASN1Primitive toASN1Primitive() { ASN1EncodableVector v = new ASN1EncodableVector(); v.add(new ASN1Integer(version)); v.add(integrityAlgorithm); v.add(creationDate); v.add(lastModifiedDate); v.add(objectDataSequence); if (comment != null) { v.add(new DERUTF8String(comment)); } return new DERSequence(v); } }