Java 类org.bouncycastle.asn1.crmf.PKIArchiveOptions 实例源码

项目:ipack    文件:CertificateRequestMessage.java   
/**
 * Return a control value of the specified type.
 *
 * @param type the type OID for the control value we are checking for.
 * @return the control value if present, null otherwise.
 */
public Control getControl(ASN1ObjectIdentifier type)
{
    AttributeTypeAndValue found = findControl(type);

    if (found != null)
    {
        if (found.getType().equals(CRMFObjectIdentifiers.id_regCtrl_pkiArchiveOptions))
        {
            return new PKIArchiveControl(PKIArchiveOptions.getInstance(found.getValue()));
        }
        if (found.getType().equals(CRMFObjectIdentifiers.id_regCtrl_regToken))
        {
            return new RegTokenControl(DERUTF8String.getInstance(found.getValue()));
        }
        if (found.getType().equals(CRMFObjectIdentifiers.id_regCtrl_authenticator))
        {
            return new AuthenticatorControl(DERUTF8String.getInstance(found.getValue()));
        }
    }

    return null;
}
项目:gwt-crypto    文件:CertificateRequestMessage.java   
/**
 * Return a control value of the specified type.
 *
 * @param type the type OID for the control value we are checking for.
 * @return the control value if present, null otherwise.
 */
public Control getControl(ASN1ObjectIdentifier type)
{
    AttributeTypeAndValue found = findControl(type);

    if (found != null)
    {
        if (found.getType().equals(CRMFObjectIdentifiers.id_regCtrl_pkiArchiveOptions))
        {
            return new PKIArchiveControl(PKIArchiveOptions.getInstance(found.getValue()));
        }
        if (found.getType().equals(CRMFObjectIdentifiers.id_regCtrl_regToken))
        {
            return new RegTokenControl(DERUTF8String.getInstance(found.getValue()));
        }
        if (found.getType().equals(CRMFObjectIdentifiers.id_regCtrl_authenticator))
        {
            return new AuthenticatorControl(DERUTF8String.getInstance(found.getValue()));
        }
    }

    return null;
}
项目:Aki-SSL    文件:CertificateRequestMessage.java   
/**
 * Return a control value of the specified type.
 *
 * @param type the type OID for the control value we are checking for.
 * @return the control value if present, null otherwise.
 */
public Control getControl(ASN1ObjectIdentifier type)
{
    AttributeTypeAndValue found = findControl(type);

    if (found != null)
    {
        if (found.getType().equals(CRMFObjectIdentifiers.id_regCtrl_pkiArchiveOptions))
        {
            return new PKIArchiveControl(PKIArchiveOptions.getInstance(found.getValue()));
        }
        if (found.getType().equals(CRMFObjectIdentifiers.id_regCtrl_regToken))
        {
            return new RegTokenControl(DERUTF8String.getInstance(found.getValue()));
        }
        if (found.getType().equals(CRMFObjectIdentifiers.id_regCtrl_authenticator))
        {
            return new AuthenticatorControl(DERUTF8String.getInstance(found.getValue()));
        }
    }

    return null;
}
项目:irma_future_id    文件:CertificateRequestMessage.java   
/**
 * Return a control value of the specified type.
 *
 * @param type the type OID for the control value we are checking for.
 * @return the control value if present, null otherwise.
 */
public Control getControl(ASN1ObjectIdentifier type)
{
    AttributeTypeAndValue found = findControl(type);

    if (found != null)
    {
        if (found.getType().equals(CRMFObjectIdentifiers.id_regCtrl_pkiArchiveOptions))
        {
            return new PKIArchiveControl(PKIArchiveOptions.getInstance(found.getValue()));
        }
        if (found.getType().equals(CRMFObjectIdentifiers.id_regCtrl_regToken))
        {
            return new RegTokenControl(DERUTF8String.getInstance(found.getValue()));
        }
        if (found.getType().equals(CRMFObjectIdentifiers.id_regCtrl_authenticator))
        {
            return new AuthenticatorControl(DERUTF8String.getInstance(found.getValue()));
        }
    }

    return null;
}
项目:irma_future_id    文件:CertificateRequestMessage.java   
/**
 * Return a control value of the specified type.
 *
 * @param type the type OID for the control value we are checking for.
 * @return the control value if present, null otherwise.
 */
public Control getControl(ASN1ObjectIdentifier type)
{
    AttributeTypeAndValue found = findControl(type);

    if (found != null)
    {
        if (found.getType().equals(CRMFObjectIdentifiers.id_regCtrl_pkiArchiveOptions))
        {
            return new PKIArchiveControl(PKIArchiveOptions.getInstance(found.getValue()));
        }
        if (found.getType().equals(CRMFObjectIdentifiers.id_regCtrl_regToken))
        {
            return new RegTokenControl(DERUTF8String.getInstance(found.getValue()));
        }
        if (found.getType().equals(CRMFObjectIdentifiers.id_regCtrl_authenticator))
        {
            return new AuthenticatorControl(DERUTF8String.getInstance(found.getValue()));
        }
    }

    return null;
}
项目:bc-java    文件:CertificateRequestMessage.java   
/**
 * Return a control value of the specified type.
 *
 * @param type the type OID for the control value we are checking for.
 * @return the control value if present, null otherwise.
 */
public Control getControl(ASN1ObjectIdentifier type)
{
    AttributeTypeAndValue found = findControl(type);

    if (found != null)
    {
        if (found.getType().equals(CRMFObjectIdentifiers.id_regCtrl_pkiArchiveOptions))
        {
            return new PKIArchiveControl(PKIArchiveOptions.getInstance(found.getValue()));
        }
        if (found.getType().equals(CRMFObjectIdentifiers.id_regCtrl_regToken))
        {
            return new RegTokenControl(DERUTF8String.getInstance(found.getValue()));
        }
        if (found.getType().equals(CRMFObjectIdentifiers.id_regCtrl_authenticator))
        {
            return new AuthenticatorControl(DERUTF8String.getInstance(found.getValue()));
        }
    }

    return null;
}
项目:bc-java    文件:CertificateRequestMessage.java   
/**
 * Return a control value of the specified type.
 *
 * @param type the type OID for the control value we are checking for.
 * @return the control value if present, null otherwise.
 */
public Control getControl(ASN1ObjectIdentifier type)
{
    AttributeTypeAndValue found = findControl(type);

    if (found != null)
    {
        if (found.getType().equals(CRMFObjectIdentifiers.id_regCtrl_pkiArchiveOptions))
        {
            return new PKIArchiveControl(PKIArchiveOptions.getInstance(found.getValue()));
        }
        if (found.getType().equals(CRMFObjectIdentifiers.id_regCtrl_regToken))
        {
            return new RegTokenControl(DERUTF8String.getInstance(found.getValue()));
        }
        if (found.getType().equals(CRMFObjectIdentifiers.id_regCtrl_authenticator))
        {
            return new AuthenticatorControl(DERUTF8String.getInstance(found.getValue()));
        }
    }

    return null;
}
项目:ipack    文件:PKIArchiveControlBuilder.java   
/**
 * Build the PKIArchiveControl using the passed in encryptor to encrypt its contents.
 *
 * @param contentEncryptor a suitable content encryptor.
 * @return a PKIArchiveControl object.
 * @throws CMSException in the event the build fails.
 */
public PKIArchiveControl build(OutputEncryptor contentEncryptor)
    throws CMSException
{
    CMSEnvelopedData envContent = envGen.generate(keyContent, contentEncryptor);

    EnvelopedData envD = EnvelopedData.getInstance(envContent.toASN1Structure().getContent());

    return new PKIArchiveControl(new PKIArchiveOptions(new EncryptedKey(envD)));
}
项目:gwt-crypto    文件:PKIArchiveControlBuilder.java   
/**
 * Build the PKIArchiveControl using the passed in encryptor to encrypt its contents.
 *
 * @param contentEncryptor a suitable content encryptor.
 * @return a PKIArchiveControl object.
 * @throws CMSException in the event the build fails.
 */
public PKIArchiveControl build(OutputEncryptor contentEncryptor)
    throws CMSException
{
    CMSEnvelopedData envContent = envGen.generate(keyContent, contentEncryptor);

    EnvelopedData envD = EnvelopedData.getInstance(envContent.toASN1Structure().getContent());

    return new PKIArchiveControl(new PKIArchiveOptions(new EncryptedKey(envD)));
}
项目:Aki-SSL    文件:PKIArchiveControlBuilder.java   
/**
 * Build the PKIArchiveControl using the passed in encryptor to encrypt its contents.
 *
 * @param contentEncryptor a suitable content encryptor.
 * @return a PKIArchiveControl object.
 * @throws CMSException in the event the build fails.
 */
public PKIArchiveControl build(OutputEncryptor contentEncryptor)
    throws CMSException
{
    CMSEnvelopedData envContent = envGen.generate(keyContent, contentEncryptor);

    EnvelopedData envD = EnvelopedData.getInstance(envContent.toASN1Structure().getContent());

    return new PKIArchiveControl(new PKIArchiveOptions(new EncryptedKey(envD)));
}
项目:irma_future_id    文件:PKIArchiveControlBuilder.java   
/**
 * Build the PKIArchiveControl using the passed in encryptor to encrypt its contents.
 *
 * @param contentEncryptor a suitable content encryptor.
 * @return a PKIArchiveControl object.
 * @throws CMSException in the event the build fails.
 */
public PKIArchiveControl build(OutputEncryptor contentEncryptor)
    throws CMSException
{
    CMSEnvelopedData envContent = envGen.generate(keyContent, contentEncryptor);

    EnvelopedData envD = EnvelopedData.getInstance(envContent.toASN1Structure().getContent());

    return new PKIArchiveControl(new PKIArchiveOptions(new EncryptedKey(envD)));
}
项目:bc-java    文件:PKIArchiveControlBuilder.java   
/**
 * Build the PKIArchiveControl using the passed in encryptor to encrypt its contents.
 *
 * @param contentEncryptor a suitable content encryptor.
 * @return a PKIArchiveControl object.
 * @throws CMSException in the event the build fails.
 */
public PKIArchiveControl build(OutputEncryptor contentEncryptor)
    throws CMSException
{
    CMSEnvelopedData envContent = envGen.generate(keyContent, contentEncryptor);

    EnvelopedData envD = EnvelopedData.getInstance(envContent.toASN1Structure().getContent());

    return new PKIArchiveControl(new PKIArchiveOptions(new EncryptedKey(envD)));
}
项目:ipack    文件:PKIArchiveControl.java   
/**
 * Basic constructor - build from an PKIArchiveOptions structure.
 *
 * @param pkiArchiveOptions  the ASN.1 structure that will underlie this control.
 */
public PKIArchiveControl(PKIArchiveOptions pkiArchiveOptions)
{
    this.pkiArchiveOptions = pkiArchiveOptions;
}
项目:gwt-crypto    文件:PKIArchiveControl.java   
/**
 * Basic constructor - build from an PKIArchiveOptions structure.
 *
 * @param pkiArchiveOptions  the ASN.1 structure that will underlie this control.
 */
public PKIArchiveControl(PKIArchiveOptions pkiArchiveOptions)
{
    this.pkiArchiveOptions = pkiArchiveOptions;
}
项目:Aki-SSL    文件:PKIArchiveControl.java   
/**
 * Basic constructor - build from an PKIArchiveOptions structure.
 *
 * @param pkiArchiveOptions  the ASN.1 structure that will underlie this control.
 */
public PKIArchiveControl(PKIArchiveOptions pkiArchiveOptions)
{
    this.pkiArchiveOptions = pkiArchiveOptions;
}
项目:irma_future_id    文件:PKIArchiveControl.java   
/**
 * Basic constructor - build from an PKIArchiveOptions structure.
 *
 * @param pkiArchiveOptions  the ASN.1 structure that will underlie this control.
 */
public PKIArchiveControl(PKIArchiveOptions pkiArchiveOptions)
{
    this.pkiArchiveOptions = pkiArchiveOptions;
}
项目:bc-java    文件:PKIArchiveControl.java   
/**
 * Basic constructor - build from an PKIArchiveOptions structure.
 *
 * @param pkiArchiveOptions  the ASN.1 structure that will underlie this control.
 */
public PKIArchiveControl(PKIArchiveOptions pkiArchiveOptions)
{
    this.pkiArchiveOptions = pkiArchiveOptions;
}