@Override public boolean isDesignatorSupported() { logger.debug("isDesignatorSupported() will return {} {}", iAm(), (instantiatedOk == Boolean.TRUE)); return instantiatedOk == Boolean.TRUE; }
@Override public boolean isDesignatorSupported() { logger.debug("isDesignatorSupported() will return {} {}", iAm(), (instantiatedOk == Boolean.TRUE)); return instantiatedOk == Boolean.TRUE; }
protected final void registerAttribute(URI id, URI type) throws URISyntaxException { logger.debug("registering attribute {} {}", iAm(), id); attributeIdUris.add(id); attributeTypes.put(id, type); }
protected final void registerAttribute(XacmlName attribute) { logger.debug("registering attribute {} {}", iAm(), attribute.uri); attributeIdUris.add(attribute.attributeId); attributeTypes.put(attribute.attributeId, attribute.datatype); }
@Override @SuppressWarnings("rawtypes") public Set getSupportedDesignatorTypes() { if (instantiatedOk != null && instantiatedOk.booleanValue()) { logger.debug("getSupportedDesignatorTypes() will return {} set of elements, n={}", iAm(), supportedDesignatorTypes.size()); return supportedDesignatorTypes; } logger.debug("getSupportedDesignatorTypes() will return {}NULLSET", iAm()); return Collections.emptySet(); }
@Override @SuppressWarnings("rawtypes") public Set getSupportedDesignatorTypes() { if (instantiatedOk != null && instantiatedOk.booleanValue()) { logger.debug("getSupportedDesignatorTypes() will return {} set of elements, n={}", iAm(), supportedDesignatorTypes.size()); return supportedDesignatorTypes; } logger.debug("getSupportedDesignatorTypes() will return {}NULLSET", iAm()); return Collections.emptySet(); }
protected final void denyAttribute(URI id) { logger.debug("Denying attribute {} {}", iAm(), id); attributesDenied.add(id); }
protected final void registerSupportedDesignatorType(int designatorType) { logger.debug("registerSupportedDesignatorType() {}", iAm()); supportedDesignatorTypes.add(designatorType); }
protected final void denyAttribute(URI id) { logger.debug("Denying attribute {} {}", iAm(), id); attributesDenied.add(id); }
protected final void registerSupportedDesignatorType(int designatorType) { logger.debug("registerSupportedDesignatorType() {}", iAm()); supportedDesignatorTypes.add(designatorType); }
protected final void registerAttribute(URI id, URI type) throws URISyntaxException { logger.debug("registering attribute {} {}", iAm(), id); attributeIdUris.add(id); attributeTypes.put(id, type); }
protected final void registerAttribute(XacmlName attribute) { logger.debug("registering attribute {} {}", iAm(), attribute.uri); attributeIdUris.add(attribute.attributeId); attributeTypes.put(attribute.attributeId, attribute.datatype); }
@Deprecated protected final void registerAttribute(String id, String type) throws URISyntaxException { logger.debug("registering attribute {} {}", iAm(), id); URI idUri = new URI(id); URI typeUri = new URI(type); attributeIdUris.add(idUri); attributeTypes.put(idUri, typeUri); }
private final void showRegisteredAttributes() { if (!logger.isDebugEnabled()) return; Iterator<URI> it = attributeIdUris.iterator(); while (it.hasNext()) { String key = it.next().toString(); logger.debug("another registered attribute = {} {}", iAm(), key); } }
@Deprecated protected final void registerAttribute(String id, String type) throws URISyntaxException { logger.debug("registering attribute {} {}", iAm(), id); URI idUri = new URI(id); URI typeUri = new URI(type); attributeIdUris.add(idUri); attributeTypes.put(idUri, typeUri); }
private final void showRegisteredAttributes() { if (!logger.isDebugEnabled()) return; Iterator<URI> it = attributeIdUris.iterator(); while (it.hasNext()) { String key = it.next().toString(); logger.debug("another registered attribute = {} {}", iAm(), key); } }
private final boolean willService(URI attributeId) { if (hasAttribute(attributeId)) { logger.debug("willService() {} accept this known serviced attribute {}", iAm(), attributeId); return true; } if (!canHandleAdhoc()) { logger.debug("willService() {} deny any adhoc attribute {}", iAm(), attributeId); return false; } if (attributesDenied.contains(attributeId)) { logger.debug("willService() {} deny this known adhoc attribute {}", iAm(), attributeId); return false; } logger.debug("willService() {} allow this unknown adhoc attribute {}", iAm(), attributeId); return true; }
private final boolean willService(URI attributeId) { if (hasAttribute(attributeId)) { logger.debug("willService() {} accept this known serviced attribute {}", iAm(), attributeId); return true; } if (!canHandleAdhoc()) { logger.debug("willService() {} deny any adhoc attribute {}", iAm(), attributeId); return false; } if (attributesDenied.contains(attributeId)) { logger.debug("willService() {} deny this known adhoc attribute {}", iAm(), attributeId); return false; } logger.debug("willService() {} allow this unknown adhoc attribute {}", iAm(), attributeId); return true; }
private final boolean parmsOk(URI attributeType, URI attributeId, int designatorType) { logger.debug("in parmsOk {}", iAm()); if (!getSupportedDesignatorTypes() .contains(Integer.valueOf(designatorType))) { logger.debug("AttributeFinder:parmsOk{} exit on target not supported [{}]", iAm(), designatorType); return false; iAm()); return false; iAm()); return false; iAm(), attributeId); showRegisteredAttributes(); if (!getAttributeType(attributeId).equals(attributeType)) { logger.debug("AttributeFinder:parmsOk{} exit on attributeType incorrect for attributeId", iAm()); return false; if (!STRING_ATTRIBUTE_TYPE_URI.equals(attributeType)) { logger.debug("AttributeFinder:parmsOk{} exit on attributeType incorrect for attributeId", iAm()); return false; logger.debug("exiting parmsOk normally {}", iAm());
protected final Object getAttributeFromEvaluationResult(EvaluationResult attribute) { if (attribute.indeterminate()) { logger.debug("AttributeFinder:getAttributeFromEvaluationCtx{} exit on couldn't get resource attribute from xacml request indeterminate", iAm()); return null; && !Status.STATUS_OK.equals(attribute.getStatus())) { logger.debug("AttributeFinder:getAttributeFromEvaluationCtx{} exit on couldn't get resource attribute from xacml request bad status", iAm()); return null; if (!(attributeValue instanceof BagAttribute)) { logger.debug("AttributeFinder:getAttributeFromEvaluationCtx{} exit on couldn't get resource attribute from xacml request no bag", iAm()); return null; if (1 != bag.size()) { logger.debug("AttributeFinder:getAttributeFromEvaluationCtx{} exit on couldn't get resource attribute from xacml request wrong bag n={}", iAm(), bag.size()); return null; logger.debug("AttributeFinder:getAttributeFromEvaluationCtx{} exit on couldn't get resource attribute from xacml request null returned", iAm()); if (logger.isDebugEnabled()) { logger.debug("AttributeFinder:getAttributeFromEvaluationCtx{} exit on couldn't get resource attribute from xacml request too many returned", iAm()); logger.debug(element.toString()); while (it.hasNext()) { iAm(), element.toString());