Package org.apache.geronimo.util.asn1

Examples of org.apache.geronimo.util.asn1.DERPrintableString


    }

    private Attribute getAttribute(PkiStatus pkiStatus) {
  ASN1ObjectIdentifier oid = toOid(PKI_STATUS.id());

  return new Attribute(oid, new DERSet(new DERPrintableString(
    Integer.toString(pkiStatus.getValue()))));
    }
View Full Code Here


    nonce.getBytes())));
    }

    private Attribute getAttribute(MessageType messageType) {
  ASN1ObjectIdentifier oid = toOid(MESSAGE_TYPE.id());
  return new Attribute(oid, new DERSet(new DERPrintableString(
    Integer.toString(messageType.getValue()))));
    }
View Full Code Here

    Integer.toString(messageType.getValue()))));
    }

    private Attribute getAttribute(TransactionId transId) {
  ASN1ObjectIdentifier oid = toOid(TRANS_ID.id());
  return new Attribute(oid, new DERSet(new DERPrintableString(
    transId.toString())));
    }
View Full Code Here

            return new Iso4217CurrencyCode(numeric);           
        }
        else
        if (obj instanceof DERPrintableString)
        {
            DERPrintableString alphabetic = DERPrintableString.getInstance(obj);
            return new Iso4217CurrencyCode(alphabetic.getString());
        }
        throw new IllegalArgumentException("unknown object in getInstance");
    }
View Full Code Here

    {
        if (alphabetic.length() > ALPHABETIC_MAXSIZE)
        {
            throw new IllegalArgumentException("wrong size in alphabetic code : max size is " + ALPHABETIC_MAXSIZE);
        }
        obj = new DERPrintableString(alphabetic);
    }           
View Full Code Here

        {
            return new DERIA5String(value);
        }
        else if (canBePrintable(value)) 
        {
            return new DERPrintableString(value);
        }
        else if (canBeUTF8(value))
        {
            return new DERUTF8String(value);
        }
View Full Code Here

                return new DERIA5String(value);
            }
            else if (oid.equals(c) || oid.equals(serialNumber) || oid.equals(dnQualifier)
                || oid.equals(telephoneNumber))
            {
                return new DERPrintableString(value);
            }
        }

        return new DERUTF8String(value);
    }
View Full Code Here

                return new ASN1GeneralizedTime(value);
            }
            else if (oid.equals(C) || oid.equals(SN) || oid.equals(DN_QUALIFIER)
                || oid.equals(TELEPHONE_NUMBER))
            {
                return new DERPrintableString(value);
            }
        }

        return new DERUTF8String(value);
    }
View Full Code Here

        {
            return new DERGeneralizedTime(value);
        }
        else if (oid.equals(X509Name.C) || oid.equals(X509Name.SN) || oid.equals(X509Name.DN_QUALIFIER))
        {
             return new DERPrintableString(value);
        }       
       
        return new DERUTF8String(value);
    }
View Full Code Here

                return new DERGeneralizedTime(value);
            }
            else if (oid.equals(X509Name.C) || oid.equals(X509Name.SN) || oid.equals(X509Name.DN_QUALIFIER)
                || oid.equals(X509Name.TELEPHONE_NUMBER))
            {
                 return new DERPrintableString(value);
            }
        }
       
        return new DERUTF8String(value);
    }
View Full Code Here

TOP

Related Classes of org.apache.geronimo.util.asn1.DERPrintableString

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.