public class NodeCredentialsFingerprintFacet extends AbstractCredentialsFingerprintFacet
Node
.ExtensionPoint.LegacyInstancesAreScopedToHudson
Constructor and Description |
---|
NodeCredentialsFingerprintFacet(Node node,
Fingerprint fingerprint,
long timestamp)
Constructor.
|
NodeCredentialsFingerprintFacet(Node node,
Fingerprint fingerprint,
long timestamp0,
long timestamp)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Node |
getNode()
Returns the
Node . |
String |
getNodeName()
Returns the
Node.getNodeName() . |
long |
getTimestamp0()
Returns the timestamp of first usage.
|
String |
getTimestampString()
Returns the timestamp range as a string.
|
int |
hashCode() |
_setOwner, createActions, getFingerprint, getTimestamp
public NodeCredentialsFingerprintFacet(@NonNull Node node, Fingerprint fingerprint, long timestamp)
node
- the nodefingerprint
- Fingerprint
object to which this facet is going to be added to.timestamp
- timestamp when the use happened (milliseconds since midnight Jan 1, 1970 UTC).public NodeCredentialsFingerprintFacet(@NonNull Node node, Fingerprint fingerprint, long timestamp0, long timestamp)
node
- the nodefingerprint
- Fingerprint
object 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).@NonNull public String getNodeName()
Node.getNodeName()
.Node.getNodeName()
.@CheckForNull public Node getNode()
Node
.Node
or null
if either the node no longer exists or the current authentication
does not have permission to access the node.public long getTimestamp0()
public String getTimestampString()
public boolean equals(Object o)
equals
in class AbstractCredentialsFingerprintFacet
public int hashCode()
hashCode
in class AbstractCredentialsFingerprintFacet
Copyright © 2016–2021. All rights reserved.