// 
// Decompiled by Procyon v0.6.0
// 

package org.bouncycastle.cert.crmf;

import org.bouncycastle.asn1.crmf.CRMFObjectIdentifiers;
import org.bouncycastle.asn1.ASN1Encodable;
import org.bouncycastle.asn1.DERUTF8String;
import org.bouncycastle.asn1.ASN1UTF8String;
import org.bouncycastle.asn1.ASN1ObjectIdentifier;

public class AuthenticatorControl implements Control
{
    private static final ASN1ObjectIdentifier type;
    private final ASN1UTF8String token;
    
    public AuthenticatorControl(final ASN1UTF8String token) {
        this.token = token;
    }
    
    public AuthenticatorControl(final String s) {
        this.token = new DERUTF8String(s);
    }
    
    @Override
    public ASN1ObjectIdentifier getType() {
        return AuthenticatorControl.type;
    }
    
    @Override
    public ASN1Encodable getValue() {
        return this.token;
    }
    
    static {
        type = CRMFObjectIdentifiers.id_regCtrl_authenticator;
    }
}
