blob: 46b781c9c86356c566f7f1be9ba99c4780cf479a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
// Copyright 2018 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.security;
import org.bouncycastle.asn1.ASN1ObjectIdentifier;
/**
* @author bjorncs
*/
public enum Extension {
BASIC_CONSTRAINTS(org.bouncycastle.asn1.x509.Extension.basicConstraints),
SUBJECT_ALTERNATIVE_NAMES(org.bouncycastle.asn1.x509.Extension.subjectAlternativeName);
final ASN1ObjectIdentifier extensionOId;
Extension(ASN1ObjectIdentifier extensionOId) {
this.extensionOId = extensionOId;
}
public String getOId() {
return extensionOId.getId();
}
}
|