/* Copyright 2012-2015 SAP SE
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package eu.aniketos.securebpmn.xacml.pdp.idHandler;
//import java.util.Date;
//
//import eu.aniketos.securebpmn.xacml.idm.AuthInfo;
//import eu.aniketos.securebpmn.xacml.idm.IDInfo;
public class IDHandler {
// private IDInfoCache cache;
//
// private int cacheEntryMinValid = 60;
//
// public IDHandler() {
// cache = new IDInfoCache();
// }
//
//
// public IDInfo resolveID(AuthInfo authinfo) {
// // TODO authInfo cache?
// IDInfo idInfo = queryIDProvider(authinfo);
//
// IDInfoCacheEntry cacheEntry = cache.getEntry(idInfo);
//
// if ( cacheEntry != null ) {
// long now = new Date().getTime();
//
// if ( true ) { // check if entry older than cacheEntryMinValid
// //return cacheEntry.foo;
// }
// }
// IDInfo info = queryIDManager(idInfo);
// cache.putEntry(info);
// return info;
// }
//
// private IDInfo queryIDProvider(AuthInfo auhtinfo) {
// return null;
// }
//
// private IDInfo queryIDManager(IDInfo idInfo) {
// return null;
// }
}