ScopeFactoryService.java revision 7523c7f44ed55a9882212a3925629e54c1295dae
/*
* The contents of this file are subject to the terms of the Common Development and
* Distribution License (the License). You may not use this file except in compliance with the
* License.
*
* You can obtain a copy of the License at legal/CDDLv1.0.txt. See the License for the
* specific language governing permission and limitations under the License.
*
* When distributing Covered Software, include this CDDL Header Notice in each file and include
* the License file at legal/CDDLv1.0.txt. If applicable, add the following below the CDDL Header,
* with the fields enclosed by brackets [] replaced by your own identifying information:
* "Portions Copyrighted [year] [name of copyright owner]".
*
* Copyright © 2011 ForgeRock AS. All rights reserved.
*/
// Java SE
// OSGi
// SLF4J
// Felix SCR
// JSON Fluent
// JSON Resource
// Utilities
// OpenIDM
/**
* TODO: Description.
*
* @author Paul C. Bryan
*/
name = "org.forgerock.openidm.scope",
)
@Properties({
})
public class ScopeFactoryService implements ScopeFactory {
/** Cryptographic service. */
name="ref_ScopeFactoryService_CryptoService",
referenceInterface=CryptoService.class,
bind="bindCryptoService",
unbind="unbindCryptoService",
)
private CryptoService cryptoService;
this.cryptoService = cryptoService;
}
this.cryptoService = null;
}
private JsonResource router;
}
/**
* TODO: Description.
*
* @param params TODO.
* @return TODO.
*/
}
/**
* TODO: Description.
*
* @param context TODO.
* @return TODO.
*/
}
// create(string id, any value)
);
return null; // no news is good news
}
});
// read(string id)
try {
).getWrappedObject();
} catch (JsonResourceException jre) {
return null; // indicates no such record without throwing exception
} else {
throw jre;
}
}
}
});
// update(string id, string rev, object value)
);
return null; // no news is good news
}
});
// delete(string id, string rev)
);
return null; // no news is good news
}
});
// query(string id, object params)
).getWrappedObject();
}
});
// action(string id, object params, any value)
}
).getWrappedObject();
}
});
// encrypt(any value, string cipher, string alias)
return cryptoService.encrypt(
).getWrappedObject();
}
});
// decrypt(any value)
return cryptoService.decrypt(
).getObject();
}
});
return openidm;
}
}));
return scope;
}
}