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

package org.bouncycastle.jcajce.spec;

import java.security.spec.EncodedKeySpec;

public class OpenSSHPrivateKeySpec extends EncodedKeySpec
{
    private final String format;
    
    public OpenSSHPrivateKeySpec(final byte[] encodedKey) {
        super(encodedKey);
        if (encodedKey[0] == 48) {
            this.format = "ASN.1";
        }
        else {
            if (encodedKey[0] != 111) {
                throw new IllegalArgumentException("unknown byte encoding");
            }
            this.format = "OpenSSH";
        }
    }
    
    @Override
    public String getFormat() {
        return this.format;
    }
}
