private String fingerprint(final DataFlow dataFlow) { final String flowFingerprint = fingerprintFactory.createFingerprint(dataFlow.getFlow()); final String authFingerprint = dataFlow.getAuthorizerFingerprint() == null ? "" : new String(dataFlow.getAuthorizerFingerprint(), StandardCharsets.UTF_8); final String candidateFingerprint = flowFingerprint + authFingerprint; return candidateFingerprint; }
public StandardDataFlow(final DataFlow toCopy) { this.flow = copy(toCopy.getFlow()); this.snippetBytes = copy(toCopy.getSnippets()); this.authorizerFingerprint = copy(toCopy.getAuthorizerFingerprint()); this.missingComponentIds = Collections.unmodifiableSet(toCopy.getMissingComponents() == null ? new HashSet<>() : new HashSet<>(toCopy.getMissingComponents())); }
final byte[] existing = existingFlow.getAuthorizerFingerprint(); final byte[] proposed = proposedFlow.getAuthorizerFingerprint();
} else { flowBytes = proposedFlow.getFlow(); authorizerFingerprint = proposedFlow.getAuthorizerFingerprint(); missingComponents = proposedFlow.getMissingComponents(); logger.debug("Loaded flow from proposed flow");
@Override public AdaptedDataFlow marshal(final DataFlow df) { final AdaptedDataFlow aDf = new AdaptedDataFlow(); if (df != null) { aDf.setFlow(df.getFlow()); aDf.setSnippets(df.getSnippets()); aDf.setAuthorizerFingerprint(df.getAuthorizerFingerprint()); aDf.setMissingComponents(df.getMissingComponents()); } return aDf; }
final String proposedAuthFingerprint = new String(proposedFlow.getAuthorizerFingerprint(), StandardCharsets.UTF_8); managedAuthorizer.inheritFingerprint(proposedAuthFingerprint);
public StandardDataFlow(final DataFlow toCopy) { this.flow = copy(toCopy.getFlow()); this.snippetBytes = copy(toCopy.getSnippets()); this.authorizerFingerprint = copy(toCopy.getAuthorizerFingerprint()); this.missingComponentIds = Collections.unmodifiableSet(toCopy.getMissingComponents() == null ? new HashSet<>() : new HashSet<>(toCopy.getMissingComponents())); }
@Override public AdaptedDataFlow marshal(final DataFlow df) { final AdaptedDataFlow aDf = new AdaptedDataFlow(); if (df != null) { aDf.setFlow(df.getFlow()); aDf.setSnippets(df.getSnippets()); aDf.setAuthorizerFingerprint(df.getAuthorizerFingerprint()); aDf.setMissingComponents(df.getMissingComponents()); } return aDf; }