Interface X509CertificateCoo
- All Superinterfaces:
BundleableObject,CyberObservableObject,CyberObservableObjectCommonProperties,GenericValidation,SdoDefaultValidator,Serializable,Stix,StixCustomProperties
- All Known Implementing Classes:
X509Certificate
@Immutable
@DefaultTypeValue(value="x509-certificate",
groups=DefaultValuesProcessor.class)
@BusinessRule(ifExp="true",
thenExp="isSelfSigned().isPresent() == true || getHashes().isEmpty() == false || getVersion().isPresent() == true || getSerialNumber().isPresent() == true || getSignatureAlgorithm().isPresent() == true || getIssuer().isPresent() == true || getValidityNotBefore().isPresent() == true || getValidityNotAfter().isPresent() == true || getSubject().isPresent() == true || getSubjectPublicKeyAlgorithm().isPresent() == true || getSubjectPublicKeyModulus().isPresent() == true || getSubjectPublicKeyExponent().isPresent() == true || getX509V3Extensions().isPresent() == true",
errorMessage="At least 1 property must be provided")
public interface X509CertificateCoo
extends CyberObservableObject
x509-certificate
The X509 Certificate Object represents the properties of an X.509 certificate.
-
Field Summary
Fields inherited from interface security.whisper.javastix.validation.SdoDefaultValidator
VALIDATOR -
Method Summary
Modifier and TypeMethodDescriptionMap<@Length(min=3,max=256) @HashingVocab(HashingAlgorithms.class) String, String> default StringgetId()Deterministically generates the ID for this X.509 certificate based on its serial number, hashes, or subject.Methods inherited from interface security.whisper.javastix.bundle.BundleableObject
getGranularMarkings, getHydrated, getObjectMarkingRefs, getType, toJsonStringMethods inherited from interface security.whisper.javastix.coo.CyberObservableObjectCommonProperties
getDefanged, getExtensions, getObservableObjectKey, getTypeMethods inherited from interface security.whisper.javastix.validation.GenericValidation
validateEntityMethods inherited from interface security.whisper.javastix.validation.SdoDefaultValidator
validate, validateOnlyIdMethods inherited from interface security.whisper.javastix.common.StixCustomProperties
getCustomProperties
-
Method Details
-
isSelfSigned
-
getHashes
@JsonPropertyDescription("Specifies any hashes that were calculated for the entire contents of the certificate.") Map<@Length(min=3,max=256) @HashingVocab(HashingAlgorithms.class) String,String> getHashes() -
getVersion
-
getSerialNumber
-
getSignatureAlgorithm
-
getIssuer
-
getValidityNotBefore
@JsonPropertyDescription("Specifies the date on which the certificate validity period begins.") Optional<StixInstant> getValidityNotBefore() -
getValidityNotAfter
@JsonPropertyDescription("Specifies the date on which the certificate validity period ends.") Optional<StixInstant> getValidityNotAfter() -
getSubject
-
getSubjectPublicKeyAlgorithm
-
getSubjectPublicKeyModulus
-
getSubjectPublicKeyExponent
-
getX509V3Extensions
@JsonPropertyDescription("Specifies any standard X.509 v3 extensions that may be used in the certificate.") Optional<X509v3ExtensionsObj> getX509V3Extensions() -
getId
Deterministically generates the ID for this X.509 certificate based on its serial number, hashes, or subject.- Specified by:
getIdin interfaceBundleableObject- Specified by:
getIdin interfaceCyberObservableObjectCommonProperties
-