com.att.research.xacmlatt.pdp.std.combiners.CombiningAlgorithmBase Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xacml-pdp Show documentation
Show all versions of xacml-pdp Show documentation
ATT reference implementation of XACML PDP engine
/*
*
* Copyright (c) 2013,2019 AT&T Knowledge Ventures
* SPDX-License-Identifier: MIT
*/
package com.att.research.xacmlatt.pdp.std.combiners;
import com.att.research.xacml.api.Identifier;
import com.att.research.xacmlatt.pdp.policy.CombiningAlgorithm;
public abstract class CombiningAlgorithmBase implements CombiningAlgorithm {
private Identifier id;
public CombiningAlgorithmBase(Identifier identifierIn) {
this.id = identifierIn;
}
@Override
public Identifier getId() {
return this.id;
}
@Override
public String toString() {
StringBuilder stringBuilder = new StringBuilder("{");
Object objectToDump;
if ((objectToDump = this.getId()) != null) {
stringBuilder.append("id=");
stringBuilder.append(objectToDump.toString());
}
stringBuilder.append('}');
return stringBuilder.toString();
}
}