com.azure.resourcemanager.iotfirmwaredefense.fluent.models.CryptoKey
public final class CryptoKey extends ObjectCrypto key properties.
Constructor Summary
Constructors
Creates an instance of CryptoKey class.
Method Summary
All MethodsInstance MethodsConcrete Methods
Get the cryptoKeyId property: ID for the key result.
Get the filePaths property: List of files where this key was found.
Get the isShortKeySize property: Indicates the key size is considered too small to be secure for the algorithm.
Get the keyAlgorithm property: Key algorithm name.
Get the keySize property: Size of the key in bits.
Get the keyType property: Type of the key (public or private).
Get the pairedKey property: A matching paired key or certificate.
Get the usage property: Functions the key can fulfill.
void
Validates the instance.
Set the cryptoKeyId property: ID for the key result.
Set the isShortKeySize property: Indicates the key size is considered too small to be secure for the algorithm.
Set the keyAlgorithm property: Key algorithm name.
Set the keySize property: Size of the key in bits.
Set the keyType property: Type of the key (public or private).
Set the pairedKey property: A matching paired key or certificate.
Set the usage property: Functions the key can fulfill.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Constructor Details
CryptoKey
public CryptoKey()
Creates an instance of CryptoKey class.
Method Details
cryptoKeyId
Get the cryptoKeyId property: ID for the key result.
Returns: the cryptoKeyId value.withCryptoKeyId
Set the cryptoKeyId property: ID for the key result.
Parameters:cryptoKeyId
- the cryptoKeyId value to set. Returns: the CryptoKey object itself.keyType
Get the keyType property: Type of the key (public or private).
Returns: the keyType value.withKeyType
Set the keyType property: Type of the key (public or private).
Parameters:keyType
- the keyType value to set. Returns: the CryptoKey object itself.keySize
public Long keySize()Get the keySize property: Size of the key in bits.
Returns: the keySize value.withKeySize
Set the keySize property: Size of the key in bits.
Parameters:keySize
- the keySize value to set. Returns: the CryptoKey object itself.keyAlgorithm
public String keyAlgorithm()Get the keyAlgorithm property: Key algorithm name.
Returns: the keyAlgorithm value.withKeyAlgorithm
Set the keyAlgorithm property: Key algorithm name.
Parameters:keyAlgorithm
- the keyAlgorithm value to set. Returns: the CryptoKey object itself.usage
Get the usage property: Functions the key can fulfill.
Returns: the usage value.withUsage
Set the usage property: Functions the key can fulfill.
Parameters:usage
- the usage value to set. Returns: the CryptoKey object itself.filePaths
Get the filePaths property: List of files where this key was found.
Returns: the filePaths value.pairedKey
Get the pairedKey property: A matching paired key or certificate.
Returns: the pairedKey value.withPairedKey
Set the pairedKey property: A matching paired key or certificate.
Parameters:pairedKey
- the pairedKey value to set. Returns: the CryptoKey object itself.isShortKeySize
Get the isShortKeySize property: Indicates the key size is considered too small to be secure for the algorithm.
Returns: the isShortKeySize value.withIsShortKeySize
Set the isShortKeySize property: Indicates the key size is considered too small to be secure for the algorithm.
Parameters:isShortKeySize
- the isShortKeySize value to set. Returns: the CryptoKey object itself.validate
public void validate()
Validates the instance.
Throws:IllegalArgumentException
- thrown if the instance is not valid.
Visit the Azure for Java Developers site for more Java documentation, including quick starts, tutorials, and code samples.
ncG1vNJzZmiZqqq%2Fpr%2FDpJuom6Njr627wWeaqKqVY8SqusOorqxmnprBcHDWnploopGrrnCt2a6pnmWimsCwwdGcnKaZnpa0pr6Moqatnpmnurit0Z6bnp6Vo8Cme5BnZ2doX5i8rnvAs6yrnV%2BnsrS71KuanqWRo66osdFooKislp6%2FrsPAq5ydnZaau7Sxjp%2Bjrp2eqXyuu8Oeo6xnc6fGscDOhJyyZpipuq0%3D