Documentation Contents

# Description of Figure Example of Provider Subclass

Link to figure Example of Provider Subclass

This figure consists of a cylinder labeled Provider C and a box. Dotted lines are used to indicate that Provider C contains the contents of the box. The box contains the following headers and Java code:

- provider.java

      public class fooJCA extends Provider {
          .
          .
          .
          put("MessageDigest.MD5", "com.foo.MD5");
          .
          .
          .
      {}

- com.foo.MD5.java

      package com.foo;
      public class MD5 extends
          MessageDigestSpi {
          .
          .
          .
      }

Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.
Contact Us