Class NodeCredentialsFingerprintFacet
java.lang.Object
jenkins.model.FingerprintFacet
com.cloudbees.plugins.credentials.fingerprints.AbstractCredentialsFingerprintFacet
com.cloudbees.plugins.credentials.fingerprints.NodeCredentialsFingerprintFacet
- All Implemented Interfaces:
ExtensionPoint
Tracks usage of a credential by a
Node.- Since:
- 2.1.1
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
ConstructorsConstructorDescriptionNodeCredentialsFingerprintFacet(Node node, Fingerprint fingerprint, long timestamp) Constructor.NodeCredentialsFingerprintFacet(Node node, Fingerprint fingerprint, long timestamp0, long timestamp) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionbooleangetNode()Returns theNode.Returns theNode.getNodeName().Return the url of theNode.longReturns the timestamp of first usage.Returns the timestamp range as a string.inthashCode()Methods inherited from class jenkins.model.FingerprintFacet
_setOwner, createActions, getFingerprint, getTimestamp, isFingerprintDeletionBlocked
-
Constructor Details
-
NodeCredentialsFingerprintFacet
Constructor.- Parameters:
node- the nodefingerprint-Fingerprintobject to which this facet is going to be added to.timestamp- timestamp when the use happened (milliseconds since midnight Jan 1, 1970 UTC).
-
NodeCredentialsFingerprintFacet
public NodeCredentialsFingerprintFacet(@NonNull Node node, Fingerprint fingerprint, long timestamp0, long timestamp) Constructor.- Parameters:
node- the nodefingerprint-Fingerprintobject to which this facet is going to be added to.timestamp0- timestamp when the first usage happened.timestamp- timestamp when the use happened (milliseconds since midnight Jan 1, 1970 UTC).
-
-
Method Details
-
getNodeName
Returns theNode.getNodeName().- Returns:
- the
Node.getNodeName().
-
getNode
Returns theNode.- Returns:
- the
Nodeornullif either the node no longer exists or the current authentication does not have permission to access the node.
-
getNodeUrl
Return the url of theNode.- Returns:
- the url of the
Nodeornullif either the node no longer exists or the current authentication does not have permission to access the node.
-
getTimestamp0
public long getTimestamp0()Returns the timestamp of first usage.- Returns:
- the timestamp of first usage.
-
getTimestampString
Returns the timestamp range as a string.- Returns:
- the timestamp range as a string.
-
equals
- Overrides:
equalsin classAbstractCredentialsFingerprintFacet
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractCredentialsFingerprintFacet
-